Please use a new instance per stream.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final byte[] | |
| private static final byte[] | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterRead(ByteBuffer
the buf, int ByteBuffer to operate onthe index in the position, int ByteBuffer to start fromthe number of bytes to operate on length)Implements io. Is called on the |
| public void | beforeWrite(ByteBuffer
the buf, int ByteBuffer to operate onthe index in the position, int ByteBuffer to start fromthe number of bytes to operate on length)Implements io. Is called on the |
| private void | |
| private void | checkUTF8(ByteBuffer
the ByteBuffer to check buf, int the index in the position, int ByteBuffer to start fromthe number of bytes to operate on length)Check if the given ByteBuffer contains non UTF-8 data. |
| public void | complete()
Implements io. Is called to complete the |
| public void | newFrame(FrameHeaderData headerData)
Implements io.
|
| state | back to summary |
|---|---|
| private int state | |
| STATES | back to summary |
|---|---|
| private static final byte[] STATES | |
| TYPES | back to summary |
|---|---|
| private static final byte[] TYPES | |
| UTF8_ACCEPT | back to summary |
|---|---|
| private static final int UTF8_ACCEPT | |
| UTF8_REJECT | back to summary |
|---|---|
| private static final int UTF8_REJECT | |
| UTF8Checker | back to summary |
|---|---|
| public UTF8Checker() | |
| afterRead | back to summary |
|---|---|
| public void afterRead(ByteBuffer buf, int position, int length) throws IOException Implements io. Doc from io. Is called on the
| |
| beforeWrite | back to summary |
|---|---|
| public void beforeWrite(ByteBuffer buf, int position, int length) throws UnsupportedEncodingException Implements io. Doc from io. Is called on the
| |
| checkUTF8 | back to summary |
|---|---|
| private void checkUTF8(int b) throws UnsupportedEncodingException | |
| checkUTF8 | back to summary |
|---|---|
| private void checkUTF8(ByteBuffer buf, int position, int length) throws UnsupportedEncodingException Check if the given ByteBuffer contains non UTF-8 data.
| |
| complete | back to summary |
|---|---|
| public void complete() throws UnsupportedEncodingException Implements io. Doc from io. Is called to complete the
| |
| newFrame | back to summary |
|---|---|
| public void newFrame(FrameHeaderData headerData) Implements io.
| |