org.apache.mina.filter.codec.serialization
Class ObjectSerializationEncoder
- ProtocolEncoder
public class ObjectSerializationEncoder
ObjectSerializationEncoder
public ObjectSerializationEncoder()
Creates a new instance.
getMaxObjectSize
public int getMaxObjectSize()
Returns the allowed maximum size of the encoded object.
If the size of the encoded object exceeds this value, this encoder
will throw a IllegalArgumentException
. The default value
is Integer.MAX_VALUE
.
setMaxObjectSize
public void setMaxObjectSize(int maxObjectSize)
Sets the allowed maximum size of the encoded object.
If the size of the encoded object exceeds this value, this encoder
will throw a IllegalArgumentException
. The default value
is Integer.MAX_VALUE
.