Classic Java transcoding program, there is no problem! Implementation and JDKBINNATIVE2ASCII.exe

xiaoxiao2021-03-06  68

Private string control (string str) {string tmp; stringbuffer sb = new stringbuffer (1000); char C; INT i, j; sb.setlength (0); for (i = 0; i 255) {sb.append ("// u"); j = (c >>> 8); tmp = integer.tohexstring (j); if ( Tmp.Length () == 1) sb.append ("0"); sb.append (tmp); j = (C & 0xFF); TMP = integer.tohexString (j); if (tmp.length () = = 1) sb.append ("0"); sb.append (tmp);} else {sb.append (c);}} Return (New String (SB));}

转载请注明原文地址:https://www.9cbs.com/read-89894.html

New Post(0)