public class ResultMessageDecoder extends AbstractMessageDecoder
MessageDecoder
that decodes ResultMessage
.NEED_DATA, NOT_OK, OK
Constructor and Description |
---|
ResultMessageDecoder() |
Modifier and Type | Method and Description |
---|---|
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
public ResultMessageDecoder()
protected AbstractMessage decodeBody(IoSession session, IoBuffer in)
decodeBody
in class AbstractMessageDecoder
session
- The current sessionin
- The incoming bufferpublic void finishDecode(IoSession session, ProtocolDecoderOutput out) throws Exception
MessageDecoder
MessageDecoder.decode(IoSession, IoBuffer, ProtocolDecoderOutput)
method didn't process
completely.session
- The current sessionout
- The instance of ProtocolDecoderOutput
that contains the decoded messagesException
- if the read data violated protocol specificationCopyright © 2004–2016 Apache MINA Project. All rights reserved.