org.springframework.integration.ip.tcp.serializer
Class AbstractByteArraySerializer
java.lang.Object
org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer
- All Implemented Interfaces:
- Deserializer<byte[]>, Serializer<byte[]>
- Direct Known Subclasses:
- ByteArrayCrLfSerializer, ByteArrayLengthHeaderSerializer, ByteArrayRawSerializer, ByteArrayStxEtxSerializer
public abstract class AbstractByteArraySerializer
- extends java.lang.Object
- implements Serializer<byte[]>, Deserializer<byte[]>
Base class for (de)serializers that provide a mechanism to
reconstruct a byte array from an arbitrary stream.
- Since:
- 2.0
Method Summary |
protected void |
checkClosure(int bite)
|
int |
getMaxMessageSize()
The maximum supported message size for this serializer. |
void |
setMaxMessageSize(int maxMessageSize)
The maximum supported message size for this serializer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxMessageSize
protected int maxMessageSize
logger
protected org.apache.commons.logging.Log logger
AbstractByteArraySerializer
public AbstractByteArraySerializer()
getMaxMessageSize
public int getMaxMessageSize()
- The maximum supported message size for this serializer.
Default 2048.
- Returns:
- The max message size.
setMaxMessageSize
public void setMaxMessageSize(int maxMessageSize)
- The maximum supported message size for this serializer.
Default 2048.
- Parameters:
maxMessageSize
- The max message size.
checkClosure
protected void checkClosure(int bite)
throws java.io.IOException
- Throws:
java.io.IOException