Package org.springframework.integration.ip.tcp.serializer
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.
-
ClassDescriptionBase class for (de)serializers that provide a mechanism to reconstruct a byte array from an arbitrary stream.Base class for deserializers that cannot determine the buffer size needed.Reads data in an InputStream to a byte[]; data must be terminated by \r\n (not included in resulting byte[]).A deserializer that uses a
ByteArrayOutputStream
instead of a fixed buffer, allowing the buffer to grow as needed.Reads data in an InputStream to a byte[]; data must be preceded by a binary length (network byte order, not included in resulting byte[]).TheByteArraySingleTerminatorSerializer
extension for theLF
message delimiter.A byte array (de)serializer that does nothing with the payload; sends it raw.Reads data in an InputStream to a byte[]; data must be terminated by a single byte (not included in resulting byte[]).Reads data in an InputStream to a byte[]; data must be prefixed by <stx> and terminated by <etx> (not included in resulting byte[]).Serializes aMap
as JSON.Used to communicate that a stream has closed, but between logical messages.Factory class to create TCP Serializer/Deserializers used to encode/decode messages to/from a TCP stream.Event representing an exception while decoding an incoming stream.