public abstract class ProtocolDecoderAdapter extends java.lang.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, wait
decode
public void finishDecode(IoSession session, ProtocolDecoderOutput out) throws java.lang.Exception
finishDecode
in interface ProtocolDecoder
java.lang.Exception
- if the read data violated protocol specificationpublic void dispose(IoSession session) throws java.lang.Exception
dispose
in interface ProtocolDecoder
java.lang.Exception
- if failed to dispose all resourcesCopyright © 2004-2019 Apache MINA Project. All Rights Reserved.