ProtocolDecoder
CumulativeProtocolDecoder
public abstract class ProtocolDecoderAdapter extends Object implements ProtocolDecoder
ProtocolDecoder
implementation for those who don't need
ProtocolDecoder.finishDecode(IoSession, ProtocolDecoderOutput)
nor
ProtocolDecoder.dispose(IoSession)
method.Constructor | Description |
---|---|
ProtocolDecoderAdapter() |
Modifier and Type | Method | Description |
---|---|---|
void |
dispose(IoSession session) |
Override this method to dispose all resources related with this decoder.
|
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
decode
public void finishDecode(IoSession session, ProtocolDecoderOutput out) throws Exception
finishDecode
in interface ProtocolDecoder
session
- The current Sessionout
- The ProtocolDecoderOutput
that contains the decoded messageException
- if the read data violated protocol specificationpublic void dispose(IoSession session) throws Exception
dispose
in interface ProtocolDecoder
session
- The current SessionException
- if failed to dispose all resourcesCopyright © 2004–2018 Apache MINA Project. All rights reserved.