|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mina.filter.codec.ProtocolDecoderAdapter org.apache.mina.filter.codec.CumulativeProtocolDecoder openlsd.network.common.codec.LSDSerializationDecoderCumulative
public class LSDSerializationDecoderCumulative
A ProtocolDecoder
which deserializes Serializable
Java
objects using IoBuffer.getObject(ClassLoader)
.
Small changes to the default implementation of serialization
from Mina. (mainly size limits and free structure)
Constructor Summary | |
---|---|
LSDSerializationDecoderCumulative()
Creates a new instance with the ClassLoader of
the current thread. |
|
LSDSerializationDecoderCumulative(java.lang.ClassLoader classLoader)
Creates a new instance with the specified ClassLoader . |
Method Summary | |
---|---|
protected boolean |
doDecode(org.apache.mina.common.IoSession session,
org.apache.mina.common.IoBuffer in,
org.apache.mina.filter.codec.ProtocolDecoderOutput out)
|
int |
getMaxObjectSize()
Returns the allowed maximum size of the object to be decoded. |
void |
setMaxObjectSize(int maxObjectSize)
Sets the allowed maximum size of the object to be decoded. |
Methods inherited from class org.apache.mina.filter.codec.CumulativeProtocolDecoder |
---|
decode, dispose |
Methods inherited from class org.apache.mina.filter.codec.ProtocolDecoderAdapter |
---|
finishDecode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LSDSerializationDecoderCumulative()
ClassLoader
of
the current thread.
public LSDSerializationDecoderCumulative(java.lang.ClassLoader classLoader)
ClassLoader
.
classLoader
- Method Detail |
---|
public int getMaxObjectSize()
BufferDataException
. The default
value is 2GB.
public void setMaxObjectSize(int maxObjectSize)
BufferDataException
. The default
value is 2GB.
maxObjectSize
- protected boolean doDecode(org.apache.mina.common.IoSession session, org.apache.mina.common.IoBuffer in, org.apache.mina.filter.codec.ProtocolDecoderOutput out) throws java.lang.Exception
doDecode
in class org.apache.mina.filter.codec.CumulativeProtocolDecoder
java.lang.Exception
CumulativeProtocolDecoder.doDecode(org.apache.mina.common.IoSession, org.apache.mina.common.IoBuffer, org.apache.mina.filter.codec.ProtocolDecoderOutput)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |