public interface MessageCodec
| Modifier and Type | Field and Description |
|---|---|
static MessageCodec |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Message |
deserialize(InputStream stream)
Deserializes message from given input stream.
|
void |
serialize(Message message,
OutputStream stream)
Serializes given message into given output stream.
|
static final MessageCodec INSTANCE
Message deserialize(InputStream stream) throws Exception
stream - input streamExceptionvoid serialize(Message message, OutputStream stream) throws Exception
message - messagestream - output streamExceptionCopyright © 2015–2020. All rights reserved.