public class ResultMessageDecoder extends AbstractMessageDecoder
MessageDecoder
that decodes ResultMessage
.NEED_DATA, NOT_OK, OK
构造器和说明 |
---|
ResultMessageDecoder() |
限定符和类型 | 方法和说明 |
---|---|
protected AbstractMessage |
decodeBody(IoSession session,
IoBuffer in) |
void |
finishDecode(IoSession session,
ProtocolDecoderOutput out)
Invoked when the specified session is closed while this decoder was
parsing the data.
|
decodable, decode
protected AbstractMessage decodeBody(IoSession session, IoBuffer in)
decodeBody
在类中 AbstractMessageDecoder
session
- The current sessionin
- The incoming bufferpublic void finishDecode(IoSession session, ProtocolDecoderOutput out) throws java.lang.Exception
MessageDecoder
MessageDecoder.decode(IoSession, IoBuffer, ProtocolDecoderOutput)
method didn't process
completely.session
- The current sessionout
- The instance of ProtocolDecoderOutput
that contains the decoded messagesjava.lang.Exception
- if the read data violated protocol specification