Public Member Functions | |
LSDSerializationCodecFactory () | |
LSDSerializationCodecFactory (ClassLoader classLoader) | |
ProtocolEncoder | getEncoder (IoSession arg) |
ProtocolDecoder | getDecoder (IoSession arg0) |
int | getEncoderMaxObjectSize () |
void | setEncoderMaxObjectSize (int maxObjectSize) |
int | getDecoderMaxObjectSize () |
void | setDecoderMaxObjectSize (int maxObjectSize) |
Private Attributes | |
final LSDSerializationEncoder | encoder |
final LSDSerializationDecoderCumulative | decoder |
openlsd.network.common.codec.LSDSerializationCodecFactory.LSDSerializationCodecFactory | ( | ) |
Creates a new instance with the ClassLoader of the current thread.
openlsd.network.common.codec.LSDSerializationCodecFactory.LSDSerializationCodecFactory | ( | ClassLoader | classLoader | ) |
Creates a new instance with the specified ClassLoader.
classLoader |
ProtocolEncoder openlsd.network.common.codec.LSDSerializationCodecFactory.getEncoder | ( | IoSession | arg | ) |
ProtocolDecoder openlsd.network.common.codec.LSDSerializationCodecFactory.getDecoder | ( | IoSession | arg0 | ) |
int openlsd.network.common.codec.LSDSerializationCodecFactory.getEncoderMaxObjectSize | ( | ) |
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.
This method does the same job with LSDSerializationEncoder#getMaxObjectSize().
void openlsd.network.common.codec.LSDSerializationCodecFactory.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. The default value is Integer#MAX_VALUE.
This method does the same job with LSDSerializationEncoder#setMaxObjectSize(int).
maxObjectSize |
int openlsd.network.common.codec.LSDSerializationCodecFactory.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}. The default value is Integer#MAX_VALUE.
This method does the same job with {LSDSerializationDecoder.getMaxObjectSize()}.
void openlsd.network.common.codec.LSDSerializationCodecFactory.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}. The default value is Integer#MAX_VALUE.
This method does the same job with {LSDSerializationDecoder.setMaxObjectSize(int)}.
maxObjectSize |
final LSDSerializationEncoder openlsd.network.common.codec.LSDSerializationCodecFactory.encoder [private] |
Encoder
final LSDSerializationDecoderCumulative openlsd.network.common.codec.LSDSerializationCodecFactory.decoder [private] |
Decoder