@StampyLibrary(libraryName="stampy-MINA-client-server-RI") public class StringDecoder extends org.apache.mina.filter.codec.CumulativeProtocolDecoder
| Constructor and Description |
|---|
StringDecoder(int maxDataLength)
Instantiates a new string decoder.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doDecode(org.apache.mina.core.session.IoSession session,
org.apache.mina.core.buffer.IoBuffer in,
org.apache.mina.filter.codec.ProtocolDecoderOutput out) |
int |
getMaxDataLength()
Gets the max data length.
|
void |
setMaxDataLength(int maxDataLength)
Sets the max data length.
|
public StringDecoder(int maxDataLength)
maxDataLength - the max data lengthprotected boolean doDecode(org.apache.mina.core.session.IoSession session,
org.apache.mina.core.buffer.IoBuffer in,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
throws java.lang.Exception
doDecode in class org.apache.mina.filter.codec.CumulativeProtocolDecoderjava.lang.Exceptionpublic int getMaxDataLength()
public void setMaxDataLength(int maxDataLength)
maxDataLength - the new max data length