|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageCodec
Message management interface to encode/decode messages on
CodecInputOutput
.
Field Summary | |
---|---|
static String |
ITF_NAME
The commonly used name of refer to this interface. |
Method Summary | |
---|---|
Message |
decode(CodecInputOutput cio)
De-serializes a message from the given stream. |
void |
encode(CodecInputOutput cio,
Message message)
Encodes the given message on the given stream. |
Field Detail |
---|
static final String ITF_NAME
Method Detail |
---|
void encode(CodecInputOutput cio, Message message) throws IOException
cio
- contains the input on which the message is encoded.message
- a message to serialize.
IOException
- if an error occurs during the serialization.Message decode(CodecInputOutput cio) throws IOException
cio
- contains the output on which the message is decoded.
IOException
- if an error occurs during the de-serialization.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |