Lines 198-199
Link Here
|
198 |
|
198 |
/** |
199 |
|
|
|
200 |
-- |
201 |
* read compressed unicode(8bit) |
199 |
* read compressed unicode(8bit) |
202 |
* |
200 |
* |
203 |
* @author Toshiaki Kamoshida(kamoshida.toshiaki at future dot co dot jp) |
201 |
* @author Toshiaki Kamoshida(kamoshida.toshiaki at future dot co dot jp) |
204 |
* |
202 |
* |
205 |
* @param string byte array to read |
203 |
* @param string byte array to read |
206 |
* @param offset offset to read byte array |
204 |
* @param offset offset to read byte array |
207 |
* @param len length to read byte array |
205 |
* @param len length to read byte array |
208 |
* @return String generated String instance by reading byte array |
206 |
* @return String generated String instance by reading byte array |
209 |
*/ |
207 |
*/ |
210 |
public static String getFromCompressedUnicode(final byte[] string, |
208 |
public static String getFromCompressedUnicode(final byte[] string, |
211 |
final int offset, final int len){ |
209 |
final int offset, final int len){ |
212 |
try{ |
210 |
try{ |
213 |
return new String(string,offset,len,"ISO-8859-1"); |
211 |
return new String(string,offset,len,"ISO-8859-1"); |
214 |
} |
212 |
} |
215 |
catch(UnsupportedEncodingException e){ |
213 |
catch(UnsupportedEncodingException e){ |
216 |
throw new InternalError();/* unreachable */ |
214 |
throw new InternalError();/* unreachable */ |
217 |
} |
215 |
} |
218 |
} |
216 |
} |