public class UnicodeHelper
extends java.lang.Object
Constructor and Description |
---|
UnicodeHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
inferCharset(byte[] bytes,
int bytesRead,
java.nio.charset.Charset clientCharset)
Try to determine whether a byte buffer's character encoding is that of the
passed-in charset.
|
public static boolean inferCharset(byte[] bytes, int bytesRead, java.nio.charset.Charset clientCharset)
Note this has been heavily changed since inception and will almost certainly disappear in the 10.x timeframe -- HR.
bytes
- bytesbytesRead
- bytesReadclientCharset
- clientCharset