Spring Integration

org.springframework.integration.ip.tcp.converter
Class AbstractByteArrayStreamingConverter

java.lang.Object
  extended by 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

Field Summary
protected  org.apache.commons.logging.Log logger
           
protected  int maxMessageSize
           
 
Constructor Summary
AbstractByteArrayStreamingConverter()
           
 
Method Summary
protected  void checkClosure(int bite)
           
 int getMaxMessageSize()
          The maximum supported message size for this converter.
 void setMaxMessageSize(int maxMessageSize)
          The maximum supported message size for this converter.
 
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
 

Field Detail

maxMessageSize

protected int maxMessageSize

logger

protected org.apache.commons.logging.Log logger
Constructor Detail

AbstractByteArrayStreamingConverter

public AbstractByteArrayStreamingConverter()
Method Detail

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

Spring Integration

Copyright © 2010. All Rights Reserved.