A
ProtocolEncoder which serializes
Serializable Java objects
using
IoBuffer.putObject(Object) .
author: The Apache MINA Project (dev@mina.apache.org) version: $Rev: 581234 $, $Date: 2007-10-02 07:39:48 -0600 (Tue, 02 Oct 2007) $
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 .
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 .
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)(Code)
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 .
Methods inherited from org.apache.mina.filter.codec.ProtocolEncoderAdapter