public static String toString(byte[] value, int offset, int length,
String encoding) throws UnsupportedEncodingException {
Charset cs = findCharset(encoding);
return cs.decode(ByteBuffer.wrap(value, offset, length)).toString();
}
public static String toString(byte[] value, String encoding)
throws UnsupportedEncodingException {
Charset cs = findCharset(encoding);