📄 eee.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: DashOC7489
package airplane;
import java.io.*;
import java.util.Hashtable;
import java.util.Vector;
import javax.microedition.midlet.MIDlet;
public class Eee
{
public Hashtable a;
public StringBuffer b;
public String c;
public Eee()
{
a = new Hashtable();
b = new StringBuffer();
c = null;
}
public Eee(MIDlet midlet, String s)
throws IOException
{
a = new Hashtable();
b = new StringBuffer();
c = null;
a(midlet, s);
}
public void a(MIDlet midlet, String s)
throws IOException
{
int i = 0;
int j = 0;
String s1 = null;
Object obj = null;
String s3 = null;
Vector vector = new Vector();
s1 = b(s);
c = a(s);
do
{
i = s1.indexOf("\n", i);
String s2 = s1.substring(j, i != -1 ? i - 1 : s1.length());
if(i == -1 && s3 != null && s2 != null && s2.trim().length() > 0)
vector.addElement(a(s2, midlet));
if(s2.startsWith("[") && s2.endsWith("]") || i == -1)
{
if(s3 != null && vector.size() > 0)
{
String as[] = new String[vector.size()];
vector.copyInto(as);
a.put(s3, as);
vector = new Vector();
}
if(i == -1)
return;
if(s2.equals("[version]") || s2.equals("[ignore]"))
{
s3 = null;
} else
{
s3 = s2.substring(1, s2.length() - 1);
vector = new Vector();
}
} else
if(s3 != null && s2 != null && s2.trim().length() > 0)
vector.addElement(a(s2, midlet));
j = ++i;
} while(true);
}
public String a(String s)
{
if(s.indexOf('/') != -1)
s = s.substring(s.lastIndexOf('/') + 1, s.length());
if(s.indexOf('.') != -1)
s = s.substring(0, s.indexOf('.'));
return s;
}
public String b(String s)
throws IOException
{
byte abyte0[] = c(s);
if(abyte0 == null)
throw new IOException("resource not found: " + s);
int i = abyte0.length;
char ac[] = new char[i];
int k = 0;
int l = 0;
while(k < i)
{
int j = abyte0[k] & 0xff;
switch(j >> 4)
{
case 0: // '\0'
case 1: // '\001'
case 2: // '\002'
case 3: // '\003'
case 4: // '\004'
case 5: // '\005'
case 6: // '\006'
case 7: // '\007'
k++;
ac[l++] = (char)j;
break;
case 12: // '\f'
case 13: // '\r'
if((k += 2) > i)
return new String(abyte0, 0, i);
byte byte0 = abyte0[k - 1];
if((byte0 & 0xc0) != 128)
return new String(abyte0, 0, i);
ac[l++] = (char)((j & 0x1f) << 6 | byte0 & 0x3f);
break;
case 14: // '\016'
if((k += 3) > i)
return new String(abyte0, 0, i);
byte byte1 = abyte0[k - 2];
byte byte2 = abyte0[k - 1];
if((byte1 & 0xc0) != 128 || (byte2 & 0xc0) != 128)
return new String(abyte0, 0, i);
ac[l++] = (char)((j & 0xf) << 12 | (byte1 & 0x3f) << 6 | (byte2 & 0x3f) << 0);
break;
case 8: // '\b'
case 9: // '\t'
case 10: // '\n'
case 11: // '\013'
default:
return new String(abyte0, 0, i);
}
}
for(k = 0; k < l; k++)
if(ac[k] == '[')
break;
return new String(ac, k, l - k);
}
public byte[] c(String s)
{
byte abyte0[];
label0:
{
ByteArrayOutputStream bytearrayoutputstream = null;
InputStream inputstream = null;
abyte0 = null;
try
{
inputstream = getClass().getResourceAsStream(s);
if(inputstream != null)
{
bytearrayoutputstream = new ByteArrayOutputStream();
for(int i = inputstream.read(); i >= 0; i = inputstream.read())
bytearrayoutputstream.write(i);
abyte0 = bytearrayoutputstream.toByteArray();
}
}
catch(Exception exception2)
{
try
{
if(inputstream != null)
inputstream.close();
}
catch(Exception exception3) { }
try
{
if(bytearrayoutputstream != null)
bytearrayoutputstream.close();
}
catch(Exception exception4) { }
break label0;
}
finally
{
try
{
if(inputstream != null)
inputstream.close();
}
catch(Exception exception6) { }
try
{
if(bytearrayoutputstream != null)
bytearrayoutputstream.close();
}
catch(Exception exception7) { }
}
try
{
if(inputstream != null)
inputstream.close();
}
catch(Exception exception) { }
try
{
if(bytearrayoutputstream != null)
bytearrayoutputstream.close();
}
catch(Exception exception1) { }
break label0;
}
return abyte0;
}
public String a(String s, MIDlet midlet)
{
b.setLength(0);
int i = 0;
int j = -1;
byte byte0 = -1;
Object obj = null;
while((j = s.indexOf("${", i)) != -1)
{
b.append(s.substring(i, j));
int k;
if((k = s.indexOf("}", j)) != -1)
{
String s1 = s.substring(j + 2, k);
if(midlet != null && midlet.getAppProperty(s1) != null)
b.append(midlet.getAppProperty(s1));
else
if(s1.equals("app.locale"))
b.append(c);
i = k + 1;
continue;
}
b.append(s.substring(j));
break;
}
b.append(s.substring(i));
return b.toString();
}
public String d(String s)
{
if(s == null)
throw new NullPointerException("key is null");
if(s.indexOf(".") == -1)
return a(s, 0);
String s1;
String s2;
s1 = s.substring(0, s.indexOf("."));
s2 = s.substring(s.indexOf(".") + 1, s.length());
if(a.get(s1) == null)
return "null: " + s;
String as[];
int i;
as = (String[])a.get(s1);
i = 0;
while(i < as.length)
{
String s3;
if(as[i].indexOf("=") == -1)
continue; /* Loop/switch isn't completed */
s3 = as[i].substring(0, as[i].indexOf("=")).trim();
if(s3.equals(s2))
return as[i].substring(as[i].indexOf("=") + 1, as[i].length()).trim();
i++;
}
try{
return "null: " + s;
}
catch(Exception exception)
{
return "error: " + s;
}
}
public String a(String s, int i)
{
if(s == null)
throw new NullPointerException("key is null");
if(a.get(s) == null)
return "null: " + s + "[" + i + "]";
String as[] = (String[])a.get(s);
if(i >= as.length)
return "out: " + s + "[" + i + "]";
if(as[i].indexOf("=") == -1)
return as[i];
try{
return as[i].substring(as[i].indexOf("=") + 1, as[i].length()).trim();
}
catch(Exception exception)
{
return "error: " + s + "[" + i + "]";
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -