📄 o.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
import java.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.rms.*;
public class o implements CommandListener
{
public static o a = null;
private final String _fldfor = "Config";
public String _fldtry;
public boolean _flddo;
public int _fldif;
public boolean _fldint;
private Form _fldnew;
public o()
{
a = this;
_mthdo();
a();
}
public void a(Display display)
{
display.setCurrent(_fldnew = new Form("浏览器设置"));
_fldnew.append(new TextField("主页:", _fldtry, 64, 4));
ChoiceGroup choicegroup = new ChoiceGroup("网页字体尺寸:", 1);
choicegroup.append("正常字体", null);
choicegroup.append("小字体", null);
choicegroup.setSelectedIndex(_flddo ? 1 : 0, true);
_fldnew.append(choicegroup);
_fldnew.append(new TextField("当低于以下堆内存值(K),则自动删除前面网页:", String.valueOf(_fldif), 4, 2));
ChoiceGroup choicegroup1 = new ChoiceGroup(null, 2);
choicegroup1.append("模仿IE身份上网", null);
choicegroup1.setSelectedIndex(0, _fldint);
_fldnew.append(choicegroup1);
_fldnew.addCommand(new Command("确定", 4, 1));
_fldnew.addCommand(new Command("取消", 3, 2));
_fldnew.setCommandListener(this);
}
public void commandAction(Command command, Displayable displayable)
{
if(command.getCommandType() == 4)
{
_fldtry = ((TextField)_fldnew.get(0)).getString().trim();
_flddo = ((ChoiceGroup)_fldnew.get(1)).getSelectedIndex() == 1;
a();
try
{
_fldif = Integer.parseInt(((TextField)_fldnew.get(2)).getString());
}
catch(NumberFormatException numberformatexception) { }
_fldint = ((ChoiceGroup)_fldnew.get(3)).isSelected(0);
_mthif();
_mthfor();
}
a._mthif();
_fldnew = null;
}
private void _mthdo()
{
byte abyte0[];
label0:
{
RecordStore recordstore = null;
abyte0 = null;
try
{
recordstore = RecordStore.openRecordStore("Config", false);
abyte0 = recordstore.getRecord(1);
}
catch(RecordStoreException recordstoreexception)
{
if(recordstore != null)
try
{
recordstore.closeRecordStore();
}
catch(Exception exception2) { }
break label0;
}
finally
{
if(recordstore != null)
try
{
recordstore.closeRecordStore();
}
catch(Exception exception3) { }
System.err.println("oooooooooooo");
//throw exception;
}
if(recordstore != null)
try
{
recordstore.closeRecordStore();
}
catch(Exception exception1) { }
break label0;
}
label1:
{
if(abyte0 == null)
break label1;
DataInputStream datainputstream = new DataInputStream(new ByteArrayInputStream(abyte0));
try
{
_fldtry = datainputstream.readUTF();
_flddo = datainputstream.readBoolean();
_fldif = datainputstream.readInt();
_fldint = datainputstream.readBoolean();
}
catch(IOException ioexception)
{
try
{
datainputstream.close();
}
catch(IOException ioexception2) { }
break label1;
}
finally
{
try
{
datainputstream.close();
}
catch(IOException ioexception3) { }
//throw exception4;
System.err.println("///////++++++++++");
}
try
{
datainputstream.close();
}
catch(IOException ioexception1) { }
break label1;
}
_mthif();
}
private void _mthif()
{
if(_fldtry == null)
_fldtry = MIExplorer._flddo;
_fldtry = "http://www.mo2me.com/";
_fldif = Math.max(30, Math.min(100, _fldif));
}
public void _mthfor()
{
ByteArrayOutputStream bytearrayoutputstream;
label0:
{
bytearrayoutputstream = new ByteArrayOutputStream();
DataOutputStream dataoutputstream = new DataOutputStream(bytearrayoutputstream);
try
{
dataoutputstream.writeUTF(_fldtry);
dataoutputstream.writeBoolean(_flddo);
dataoutputstream.writeInt(_fldif);
dataoutputstream.writeBoolean(_fldint);
}
catch(IOException ioexception)
{
try
{
dataoutputstream.close();
}
catch(IOException ioexception2) { }
break label0;
}
finally
{
try
{
dataoutputstream.close();
}
catch(IOException ioexception3) { }
//throw exception;
}
try
{
dataoutputstream.close();
}
catch(IOException ioexception1) { }
break label0;
}
label1:
{
byte abyte0[] = bytearrayoutputstream.toByteArray();
RecordStore recordstore = null;
try
{
recordstore = RecordStore.openRecordStore("Config", true);
try
{
recordstore.setRecord(1, abyte0, 0, abyte0.length);
}
catch(InvalidRecordIDException invalidrecordidexception)
{
recordstore.addRecord(abyte0, 0, abyte0.length);
}
}
catch(RecordStoreException recordstoreexception)
{
if(recordstore != null)
try
{
recordstore.closeRecordStore();
}
catch(RecordStoreException recordstoreexception2) { }
break label1;
}
finally
{
if(recordstore != null)
try
{
recordstore.closeRecordStore();
}
catch(RecordStoreException recordstoreexception3) { }
//throw exception1;
}
if(recordstore != null)
try
{
recordstore.closeRecordStore();
}
catch(RecordStoreException recordstoreexception1) { }
break label1;
}
}
private void a()
{
System.err.println("____88888888____");
r._fldcase = Font.getFont(64, 0, _flddo ? 8 : 0);
u._fldif = Font.getFont(64, 4, _flddo ? 8 : 0);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -