Package org.springframework.integration.ip.tcp.serializer
Byte array (de)serializers for putting some protocol on the
wire so that incoming messages can be constructed from stream data.
-
Class Summary Class Description AbstractByteArraySerializer Base class for (de)serializers that provide a mechanism to reconstruct a byte array from an arbitrary stream.AbstractPooledBufferByteArraySerializer Base class for deserializers that cannot determine the buffer size needed.ByteArrayCrLfSerializer Reads data in an InputStream to a byte[]; data must be terminated by \r\n (not included in resulting byte[]).ByteArrayElasticRawDeserializer A deserializer that uses aByteArrayOutputStream
instead of a fixed buffer, allowing the buffer to grow as needed.ByteArrayLengthHeaderSerializer Reads data in an InputStream to a byte[]; data must be preceded by a binary length (network byte order, not included in resulting byte[]).ByteArrayLfSerializer ByteArrayRawSerializer A byte array (de)serializer that does nothing with the payload; sends it raw.ByteArraySingleTerminatorSerializer Reads data in an InputStream to a byte[]; data must be terminated by a single byte (not included in resulting byte[]).ByteArrayStxEtxSerializer Reads data in an InputStream to a byte[]; data must be prefixed by <stx> and terminated by <etx> (not included in resulting byte[]).MapJsonSerializer Serializes aMap
as JSON.TcpCodecs Factory class to create TCP Serializer/Deserializers used to encode/decode messages to/from a TCP stream.TcpDeserializationExceptionEvent Event representing an exception while decoding an incoming stream. -
Exception Summary Exception Description SoftEndOfStreamException Used to communicate that a stream has closed, but between logical messages.