final class Utf8Validator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
checking |
private int |
codep |
private int |
state |
private static byte[] |
STATES |
private static byte[] |
TYPES |
private static int |
UTF8_ACCEPT |
private static int |
UTF8_REJECT |
| Constructor and Description |
|---|
Utf8Validator() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(byte[] bytes) |
void |
finish() |
boolean |
isChecking() |
private void |
write(int b) |
private static final int UTF8_ACCEPT
private static final int UTF8_REJECT
private static final byte[] TYPES
private static final byte[] STATES
private int state
private int codep
private boolean checking
public void check(byte[] bytes)
throws CorruptedFrameException
CorruptedFrameExceptionprivate void write(int b)
throws CorruptedFrameException
CorruptedFrameExceptionpublic void finish()
throws CorruptedFrameException
CorruptedFrameExceptionpublic boolean isChecking()