Class Utf8Validator
java.lang.Object
org.jboss.netty.handler.codec.http.websocketx.Utf8Validator
Checks UTF8 bytes for validity before converting it into a string
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private int
private int
private static final byte[]
private static final byte[]
private static final int
private static final int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
UTF8_ACCEPT
private static final int UTF8_ACCEPT- See Also:
-
UTF8_REJECT
private static final int UTF8_REJECT- See Also:
-
TYPES
private static final byte[] TYPES -
STATES
private static final byte[] STATES -
state
private int state -
codep
private int codep -
checking
private boolean checking
-
-
Constructor Details
-
Utf8Validator
Utf8Validator()
-
-
Method Details
-
check
- Throws:
CorruptedFrameException
-
write
- Throws:
CorruptedFrameException
-
finish
- Throws:
CorruptedFrameException
-
isChecking
public boolean isChecking()
-