public class JdkMessageCodec extends Object implements MessageCodec
INSTANCE| Constructor and Description |
|---|
JdkMessageCodec() |
| Modifier and Type | Method and Description |
|---|---|
Message |
deserialize(InputStream is)
Deserializes message from given input stream.
|
void |
serialize(Message message,
OutputStream os)
Serializes given message into given output stream.
|
public Message deserialize(InputStream is) throws IOException, ClassNotFoundException
MessageCodecdeserialize in interface MessageCodecis - input streamIOExceptionClassNotFoundExceptionpublic void serialize(Message message, OutputStream os) throws IOException
MessageCodecserialize in interface MessageCodecmessage - messageos - output streamIOExceptionCopyright © 2015–2020. All rights reserved.