org.springframework.integration.ip.tcp.converter
Class AbstractByteArrayStreamingConverter
java.lang.Object
org.springframework.integration.ip.tcp.converter.AbstractByteArrayStreamingConverter
- All Implemented Interfaces:
- org.springframework.commons.serializer.InputStreamingConverter<byte[]>, org.springframework.commons.serializer.OutputStreamingConverter<byte[]>
- Direct Known Subclasses:
- ByteArrayCrLfConverter, ByteArrayLengthHeaderConverter, ByteArrayStxEtxConverter
public abstract class AbstractByteArrayStreamingConverter
- extends Object
- implements org.springframework.commons.serializer.InputStreamingConverter<byte[]>, org.springframework.commons.serializer.OutputStreamingConverter<byte[]>
Base class for streaming converters that convert to/from a byte array.
- Since:
- 2.0
- Author:
- Gary Russell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.commons.serializer.InputStreamingConverter |
convert |
Methods inherited from interface org.springframework.commons.serializer.OutputStreamingConverter |
convert |
maxMessageSize
protected int maxMessageSize
logger
protected org.apache.commons.logging.Log logger
AbstractByteArrayStreamingConverter
public AbstractByteArrayStreamingConverter()
getMaxMessageSize
public int getMaxMessageSize()
- The maximum supported message size for this converter.
Default 2048.
- Returns:
- The max message size.
setMaxMessageSize
public void setMaxMessageSize(int maxMessageSize)
- The maximum supported message size for this converter.
Default 2048.
- Parameters:
maxMessageSize
- The max message size.
checkClosure
protected void checkClosure(int bite)
throws IOException
- Throws:
IOException
Copyright © 2010. All Rights Reserved.