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 and Description |
|---|
ProtocolDecoderAdapter() |
| Modifier and Type | Method and 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, waitdecodepublic void finishDecode(IoSession session, ProtocolDecoderOutput out) throws Exception
finishDecode in interface ProtocolDecoderException - if the read data violated protocol specificationpublic void dispose(IoSession session) throws Exception
dispose in interface ProtocolDecoderException - if failed to dispose all resources