问题描述
以下是源代码:v=f.getString();w=e.getString();x=g.getString();if(f.size()==25){Javajava;(java=this).t=1;java.d.deleteAll();java.d.append(java.n);try{Imageimage=Image.createImage("/feng.png");java.d.append(image);}catch(Exception_ex){}java.d.addCommand(java.i);java.d.addCommand(java.j);java.d.addCommand(java.k);java.d.setCommandListener(java);java.a.setCurrent(java.d);(newThread(java)).start();}else{a("lxt长度不正确,应该是25位",AlertType.ERROR);}}if(command==i)a("lxt:n乐迅页面属性lxt=后的25位字母和数字n帖子id:n帖子链接中id=后的8位数字。n论坛bid:n帖子链接中bid=后的3位或4位数字",((AlertType)(null)));if(command==j)startApp();if(command==k)destroyApp(true);}publicfinalvoidrun(){_L7:t;JVMINSTRtableswitch11:default688//124;goto_L1_L2_L1:continue;/*Loop/switchisn'tcompleted*/_L2:Stringas[];intj1;inti1=(as=b()).length;j1=(b.nextInt()>>>1)%i1;n.setText("nn状态:n回复成功:"+String.valueOf(q)+"n回复失败:"+String.valueOf(r)+"n连接出错:"+String.valueOf(s)+"nnn");this;as[j1];Strings2=v;Strings1;s1;JVMINSTRdup;Javajava;java;null;C;Strings3;Strings4;Strings5;java.E=null;java.D=null;s3="10.0.0.172:80";s4="f3.lexun.com";s5="content=".concat(String.valueOf(s1));try{switch(java.o){case0://''java.C=(HttpConnection)Connector.open("http://"+String.valueOf(s4)+"/writerlyapp.aspx?id="+String.valueOf(java.w)+"&cd=&lxt="+String.valueOf(s2)+"&bid="+String.valueOf(java.x));break;case1://'01'(java.C=(HttpConnection)Connector.open("http://"+String.valueOf(s3)+"/writerlyapp.aspx?id="+String.valueOf(java.w)+"&cd=&lxt="+String.valueOf(s2)+"&bid="+String.valueOf(java.x))).setRequestProperty("X-Online-Host",s4);break;}java.C.setRequestMethod("POST");java.C.setRequestProperty("Content-Type","application/x-www-form-urlencoded");java.C.setRequestProperty("Accept","text/plain");java.C.setRequestProperty("Content-Length",Integer.toString(s5.length()));java.E=java.C.openOutputStream();java.E.write(s5.getBytes("UTF-8"));java.D=java.C.openInputStream();byteabyte0[]=newbyte[java.D.available()];java.D.read(abyte0);Strings6;if((s6=newString(abyte0,"UTF-8")).indexOf("成功")!=-1)java.q++;if(s6.indexOf("内容")!=-1)java.r++;}catch(Exception_ex){java.s++;}goto_L3Exceptionexception;exception;if(java.E!=null)java.E.close();if(java.D!=null)java.D.close();if(java.C!=null)java.C.close();goto_L4JVMINSTRdup;IOExceptionioexception;ioexception;printStackTrace();_L4:throwexception;_L3:if(java.E!=null)java.E.close();if(java.D!=null)java.D.close();if(java.C!=null)java.C.close();goto_L5JVMINSTRdup;ioexception;printStackTrace();_L5:Thread.sleep(10000L);continue;/*Loop/switchisn'tcompleted*/JVMINSTRpop;if(true)goto_L7;elsegoto_L6_L6:}privatevoida(Strings1,AlertTypealerttype){Alertalert=newAlert("提示",s1,null,alerttype);a.setCurrent(alert);}privatevoida(){Strings1=null;try{InputStreaminputstream;byteabyte0[]=newbyte[(inputstream=getClass().getResourceAsStream("/WordType.lang")).available()];inputstream.read(abyte0);s1=newString(abyte0,"UTF-8");}catch(Exception_ex){}Vectorvector=newVector();Vectorvector1=newVector();newVector();newVector();Vectorvector2=b(s1,"n");for(inti1=0;i1<vector2.size();i1++){Vectorvector3=b((String)vector2.elementAt(i1),".");vector.addElement((String)vector3.elementAt(0));vector1.addElement((String)vector3.elementAt(1));}Stringas[]=newString[vector.size()];Stringas1[]=newString[vector1.size()];for(intj1=0;j1<as1.length;j1++){as[j1]=(String)vector.elementAt(j1);as1[j1]=(String)vector1.elementAt(j1);}y=as;z=as1;}privateString[]b(){Strings1=null;try{InputStreaminputstream;byteabyte0[]=newbyte[(inputstream=getClass().getResourceAsStream("/".concat(String.valueOf(y[p])))).available()];inputstream.read(abyte0);s1=newString(abyte0,"UTF-8");}catch(Exception_ex){}returna(s1,"n");}privateString[]a(Strings1,Strings2){if(s1==null)returnnull;Vectorvector;Stringas[]=newString[(vector=b(s1,s2)).size()];for(inti1=0;i1<vector.size();i1++)as[i1]=(String)vector.elementAt(i1);returnas;}privatestaticVectorb(Strings1,Strings2){Vectorvector=newVector();Strings3;Strings4;for(s3=s1;s3.indexOf(s2)!=-1;vector.addElement(s4)){s4=s3.substring(0,s3.indexOf(s2));s3=s3.substring(s3.indexOf(s2)+s2.length());}vector.addElement(s3);returnvector;}publicJava(){o=0;p=0;q=0;r=0;s=0;t=0;u="rms";A=null;B=true;Javajava=this;try{java.A=RecordStore.openRecordStore(java.u,true);}catch(RecordStoreException_ex){java.A=null;}if(java.A!=null)try{if(java.A.getNumRecords()!=0){DataInputStreamdatainputstream=newDataInputStream(newByteArrayInputStream(java.A.getRecord(1)));java.B=datainputstream.readBoolean();java.v=datainputstream.readUTF();java.w=datainputstream.readUTF();java.x=datainputstream.readUTF();datainputstream.close();}}catch(Exception_ex){}a();a=Display.getDisplay(this);b=newRandom();Stringas[]={"直连","代理"};c=newForm("设置");d=newForm("刷回复中");e=newTextField("刷回复的帖子ID",w,128,2);f=newTextField("请输入你的乐迅lxt",v,128,0);g=newTextField("论坛ID",x,128,2);l=newChoiceGroup("接入方式",4,as,null);m=newChoiceGroup("回复语类型",4,z,null);n=newStringItem(null,null);h=newCommand("确认",4,0);i=newCommand("帮助",8,0);newCommand("最小化",8,1);j=newCommand("停止",2,0);k=newCommand("退出",7,0);}}
上面中这个:f=newTextField("请输入你的乐迅lxt",v,128,0);无法修改成支持26个字符的。特来请教。源文件在此下载:http://download.csdn.net/source/3457393