| Modifier and Type | Method and Description |
|---|---|
M |
decode(byte[] buf)
Decodes the message.
|
byte[] |
encode(M message)
Encodes the message.
|
public byte[] encode(M message) throws EncodingException
Codecencode in interface Codec<M>message - the message objectEncodingException - if encoding failedpublic M decode(byte[] buf) throws EncodingException
Codecdecode in interface Codec<M>buf - the encoded messageEncodingException - if decoding failedCopyright © 2020. All rights reserved.