public class UTF8Validator extends Object
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 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.