public class UTF8Validator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CHECK_UTF8_VALIDITY |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValid(byte[] bytes,
int offset,
int length)
Checks the validity of UTF8 array of bytes.
|
public static final String CHECK_UTF8_VALIDITY
public static boolean isValid(byte[] bytes,
int offset,
int length)
bytes - the bytes array to check.offset - the offset to start the validity.length - the length to check.