2) Java knows how to encode characters when new
String() is called, so ENC_TYPE[encType] is not
needed.
private String getDecodedString(byte[] b, int eIndex, int
offset)
throws java.io.UnsupportedEncodingException {
String str = new String();
int encType = (int) b[eIndex];
if ((encType >= 0) && (encType <
ENC_TYPES.length)) {
str = new String(b, offset, b.length - offset);
// ENC_TYPES[encType]);
// "Big5");
System.out.println(str);
}
return str;
}