Byte array STX/ETX (de)serializer
Serializes data prefixed with STX and terminated by ETX
Reads data in an InputStream
to a byte[]
; data must be prefixed by <stx> and terminated by <etx> (not included in resulting byte[]
).
Writes a byte[]
to an OutputStream
prefixed by <stx> terminated by <etx>.
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.