![]() Memo/Java/携帯https://dexlab.net:443/pukiwiki/index.php?Memo/Java/%B7%C8%C2%D3 |
携帯 †プロジェクト †
Doja環境変数 †
ezplusアプリ(*.kjx) -> jad,jar変換 †ezplusアプリのkjxファイルはjad+jarなので、展開すれば、逆コンパイラでソースを見ることもできます。
jarサイズ縮小&難読化 †
文字列を分解し、配列で返す †iアプリではStringTokenizerが使えないのでその替わり。 /** * 文字列を分解し、配列で返す * * @note * - iアプリではStringTokenizerが使えないので替わり */ public String[] strSplit(String str, String delim){ str = str + delim; String[] mes = new String[0]; String[] temp = new String[0]; int t = 0; String buf = null; while(true){ t = str.indexOf(delim); if(t==-1) break; if(t==0){ buf = ""; }else{ buf = str.substring(0,t); } str = str.substring(t+1); System.arraycopy(mes,0,temp,0,mes.length); mes = new String[mes.length + 1]; System.arraycopy(temp,0,mes,0,temp.length); mes[ temp.length ] = buf; temp = new String[ mes.length ]; } return mes; } リンク † |
|