|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProtocolDecoder
Decodes binary or protocol-specific data into higher-level message objects.
MINA invokes decode(IoSession, ByteBuffer, ProtocolDecoderOutput)
method with read data, and then the decoder implementation puts decoded
messages into ProtocolDecoderOutput by calling
ProtocolDecoderOutput.write(Object).
Please refer to
TextLineDecoder
example.
| Method Summary | |
|---|---|
void |
decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out)
Decodes binary or protocol-specific content into higher-level message objects. |
void |
dispose(IoSession session)
Releases all resources related with this decoder. |
void |
finishDecode(IoSession session,
ProtocolDecoderOutput out)
Invoked when the specified session is closed. |
| Method Detail |
|---|
void decode(IoSession session,
ByteBuffer in,
ProtocolDecoderOutput out)
throws java.lang.Exception
decode(IoSession, ByteBuffer, ProtocolDecoderOutput)
method with read data, and then the decoder implementation puts decoded
messages into ProtocolDecoderOutput.
java.lang.Exception - if the read data violated protocol specification
void finishDecode(IoSession session,
ProtocolDecoderOutput out)
throws java.lang.Exception
decode(IoSession, ByteBuffer, ProtocolDecoderOutput)
method didn't process completely.
java.lang.Exception - if the read data violated protocol specification
void dispose(IoSession session)
throws java.lang.Exception
java.lang.Exception - if failed to dispose all resources
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||