MessageDecoder
public abstract class MessageDecoderAdapter extends Object implements MessageDecoder
MessageDecoder
implementation for those who don't need to
implement MessageDecoder.finishDecode(IoSession, ProtocolDecoderOutput)
method.NEED_DATA, NOT_OK, OK
Constructor | Description |
---|---|
MessageDecoderAdapter() |
Modifier and Type | Method | Description |
---|---|---|
void |
finishDecode(IoSession session,
ProtocolDecoderOutput out) |
Override this method to deal with the closed connection.
|
decodable, decode
public void finishDecode(IoSession session, ProtocolDecoderOutput out) throws Exception
finishDecode
in interface MessageDecoder
session
- The current sessionout
- The instance of ProtocolDecoderOutput
that contains the decoded messagesException
- if the read data violated protocol specificationCopyright © 2004–2018 Apache MINA Project. All rights reserved.