public class ByteArrayRawSerializer extends AbstractByteArraySerializer
Because the socket must be closed to indicate message end, this (de)serializer can only be used by uni-directional (non-collaborating) channel adapters, and not by gateways.
logger, maxMessageSize| Constructor and Description |
|---|
ByteArrayRawSerializer() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
deserialize(InputStream inputStream) |
void |
serialize(byte[] bytes,
OutputStream outputStream) |
checkClosure, copyToSizedArray, getMaxMessageSize, setMaxMessageSizepublic void serialize(byte[] bytes,
OutputStream outputStream)
throws IOException
IOExceptionpublic byte[] deserialize(InputStream inputStream) throws IOException
IOException