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 and Description |
---|
MessageDecoderAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
finishDecode(IoSession session,
ProtocolDecoderOutput out)
Override this method to deal with the closed connection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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–2021 Apache MINA Project. All rights reserved.