| java.lang.Object org.apache.mina.filter.codec.textline.TextLineDecoder
All known Subclasses: org.apache.mina.example.tapedeck.CommandDecoder,
TextLineDecoder | public class TextLineDecoder implements ProtocolDecoder(Code) | | A
ProtocolDecoder which decodes a text line into a string.
author: The Apache MINA Project (dev@mina.apache.org) version: $Rev: 608906 $, $Date: 2008-01-04 09:29:40 -0700 (Fri, 04 Jan 2008) $, |
TextLineDecoder | public TextLineDecoder(String delimiter)(Code) | | Creates a new instance with the current default
Charset and the specified delimiter.
|
TextLineDecoder | public TextLineDecoder(LineDelimiter delimiter)(Code) | | Creates a new instance with the current default
Charset and the specified delimiter.
|
TextLineDecoder | public TextLineDecoder(Charset charset, String delimiter)(Code) | | Creates a new instance with the spcified charset
and the specified delimiter.
|
TextLineDecoder | public TextLineDecoder(Charset charset, LineDelimiter delimiter)(Code) | | Creates a new instance with the specified charset
and the specified delimiter.
|
getMaxLineLength | public int getMaxLineLength()(Code) | | Returns 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
BufferDataException . The default
value is 1024 (1KB).
|
setMaxLineLength | public void setMaxLineLength(int maxLineLength)(Code) | | 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
BufferDataException . The default
value is 1024 (1KB).
|
|
|