org.apache.mina.filter.codec.serialization
Class ObjectSerializationDecoder
- ProtocolDecoder
public class ObjectSerializationDecoder
ObjectSerializationDecoder
public ObjectSerializationDecoder()
Creates a new instance with the ClassLoader
of
the current thread.
ObjectSerializationDecoder
public ObjectSerializationDecoder(ClassLoader classLoader)
Creates a new instance with the specified ClassLoader
.
getMaxObjectSize
public int getMaxObjectSize()
Returns the allowed maximum size of the object to be decoded.
If the size of the object to be decoded exceeds this value, this
decoder will throw a
BufferDataException
. The default
value is
1048576 (1MB).
setMaxObjectSize
public void setMaxObjectSize(int maxObjectSize)
Sets the allowed maximum size of the object to be decoded.
If the size of the object to be decoded exceeds this value, this
decoder will throw a
BufferDataException
. The default
value is
1048576 (1MB).