TcpDecoder

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

decode
void decode(ByteBuffer buf, Connection connection)
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose(Connection connection)
Undocumented in source. Be warned that the author may not have intended to support it.
getBufferLength
int getBufferLength()

@return the allowed buffer size used to store the decoded line in the Context instance.

getMaxLineLength
int getMaxLineLength()

@return the allowed maximum size of the line to be decoded. If the size of the line to be decoded exceeds this value, the decoder will throw a {@link BufferDataException}. The default value is <tt>1024</tt> (1KB).

setBufferLength
void setBufferLength(int bufferLength)

Sets the default buffer size. This buffer is used in the Context to store the decoded line.

setMaxLineLength
void setMaxLineLength(int maxLineLength)

Sets the allowed maximum size of the line to be decoded. If the size of the line to be decoded exceeds this value, the decoder will throw a {@link BufferDataException}. The default value is <tt>1024</tt> (1KB).

Meta