|
||||||||||
| 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, IoBuffer, 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.
ProtocolDecoderException| Method Summary | |
|---|---|
void |
decode(IoSession session,
IoBuffer 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,
IoBuffer in,
ProtocolDecoderOutput out)
throws Exception
decode(IoSession, IoBuffer, ProtocolDecoderOutput)
method with read data, and then the decoder implementation puts decoded
messages into ProtocolDecoderOutput.
Exception - if the read data violated protocol specification
void finishDecode(IoSession session,
ProtocolDecoderOutput out)
throws Exception
decode(IoSession, IoBuffer, ProtocolDecoderOutput)
method didn't process completely.
Exception - if the read data violated protocol specification
void dispose(IoSession session)
throws Exception
Exception - if failed to dispose all resources
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||