A
ProtocolCodecFactory that serializes and deserializes Java objects.
This codec is very useful when you have to prototype your application rapidly
without any specific codec.
author: The Apache MINA Project (dev@mina.apache.org) version: $Rev: 596187 $, $Date: 2007-11-18 20:41:14 -0700 (Sun, 18 Nov 2007) $
getDecoderMaxObjectSize() Returns the allowed maximum size of the object to be decoded.
If the size of the object to be decoded exceeds this value, the
decoder will throw a
BufferDataException .
setDecoderMaxObjectSize(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, the
decoder will throw a
BufferDataException .
public void
setEncoderMaxObjectSize(int maxObjectSize) Sets the allowed maximum size of the encoded object.
If the size of the encoded object exceeds this value, the encoder
will throw a
IllegalArgumentException .
Returns the allowed maximum size of the object to be decoded.
If the size of the object to be decoded exceeds this value, the
decoder will throw a
BufferDataException . The default
value is 1048576 (1MB).
Returns the allowed maximum size of the encoded object.
If the size of the encoded object exceeds this value, the encoder
will throw a
IllegalArgumentException . The default value
is
Integer.MAX_VALUE .
public void setDecoderMaxObjectSize(int maxObjectSize)(Code)
Sets the allowed maximum size of the object to be decoded.
If the size of the object to be decoded exceeds this value, the
decoder will throw a
BufferDataException . The default
value is 1048576 (1MB).
public void setEncoderMaxObjectSize(int maxObjectSize)(Code)
Sets the allowed maximum size of the encoded object.
If the size of the encoded object exceeds this value, the encoder
will throw a
IllegalArgumentException . The default value
is
Integer.MAX_VALUE .