@StampyLibrary(libraryName="stampy-MINA-client-server-RI") public class StringEncoder extends org.apache.mina.filter.codec.ProtocolEncoderAdapter
| Constructor and Description |
|---|
StringEncoder(int maxDataLength)
Instantiates a new string encoder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(org.apache.mina.core.session.IoSession session,
java.lang.Object message,
org.apache.mina.filter.codec.ProtocolEncoderOutput out) |
int |
getMaxDataLength()
Gets the max data length.
|
void |
setMaxDataLength(int maxDataLength)
Sets the max data length.
|
public StringEncoder(int maxDataLength)
maxDataLength - the max data lengthpublic void encode(org.apache.mina.core.session.IoSession session,
java.lang.Object message,
org.apache.mina.filter.codec.ProtocolEncoderOutput out)
throws java.lang.Exception
java.lang.Exceptionpublic int getMaxDataLength()
public void setMaxDataLength(int maxDataLength)
maxDataLength - the new max data length