Byte array text length header (de)serializer
Serializes data preceded by an ASCII header indicating the data length
Extension of ByteArrayLengthHeaderSerializer
that reads/writes the length header as a textual (ASCII) representation instead of a "normal" binary representation.
Example: length '255'
(with header size '4'
) is represented as '0x00 0x32 0x35 0x35'
. In the "normal" binary representation this would have been '0x00 0x00 0x00 0xFF'
. Note that the use of this textual representation greatly limits the range of possible values compared to the binary representation, possibly resulting in larger header sizes.
Header size
Size of the length header in bytes. A header must be at least one byte long.
Required
Id
Name that uniquely identifies this flow component.
Required
Max message size
The maximum supported message size (in bytes) for this (de)serializer.
Default is 2048 (2 KiB).
To avoid memory exhaustion due to a badly behaved client (one that does not adhere to the protocol of the configured serializer), this (de)serializer imposes a maximum message size. If the size is exceeded by an incoming message, an exception will be thrown. The default maximum message size is 2048 bytes, and can be increased by setting the maxMessageSize property.