Class ByteArrayElasticRawDeserializer
java.lang.Object
org.springframework.integration.ip.tcp.serializer.ByteArrayElasticRawDeserializer
- All Implemented Interfaces:
- Deserializer<byte[]>
A deserializer that uses a 
ByteArrayOutputStream instead of a fixed buffer,
 allowing the buffer to grow as needed. Completion is indicated by the sender closing
 the socket.- Since:
- 5.0
- Author:
- Gary Russell
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct an instance that usesByteArrayOutputStreams with an initial buffer size of 32.ByteArrayElasticRawDeserializer(int initialBufferSize) Construct an instance that usesByteArrayOutputStreams with the provided initial buffer size.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.serializer.DeserializerdeserializeFromByteArray
- 
Constructor Details- 
ByteArrayElasticRawDeserializerpublic ByteArrayElasticRawDeserializer()Construct an instance that usesByteArrayOutputStreams with an initial buffer size of 32.
- 
ByteArrayElasticRawDeserializerpublic ByteArrayElasticRawDeserializer(int initialBufferSize) Construct an instance that usesByteArrayOutputStreams with the provided initial buffer size.- Parameters:
- initialBufferSize- the initial buffer size.
 
 
- 
- 
Method Details- 
deserialize- Specified by:
- deserializein interface- Deserializer<byte[]>
- Throws:
- IOException
 
 
-