Package org.apache.mina.filter.codec
Class ProtocolDecoderAdapter
- java.lang.Object
-
- org.apache.mina.filter.codec.ProtocolDecoderAdapter
-
- All Implemented Interfaces:
ProtocolDecoder
- Direct Known Subclasses:
CumulativeProtocolDecoder
public abstract class ProtocolDecoderAdapter extends java.lang.Object implements ProtocolDecoder
An abstractProtocolDecoder
implementation for those who don't needProtocolDecoder.finishDecode(IoSession, ProtocolDecoderOutput)
norProtocolDecoder.dispose(IoSession)
method.
-
-
Constructor Summary
Constructors Constructor Description ProtocolDecoderAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.mina.filter.codec.ProtocolDecoder
decode
-
-
-
-
Method Detail
-
finishDecode
public void finishDecode(IoSession session, ProtocolDecoderOutput out) throws java.lang.Exception
Override this method to deal with the closed connection. The default implementation does nothing.- Specified by:
finishDecode
in interfaceProtocolDecoder
- Throws:
java.lang.Exception
- if the read data violated protocol specification
-
dispose
public void dispose(IoSession session) throws java.lang.Exception
Override this method to dispose all resources related with this decoder. The default implementation does nothing.- Specified by:
dispose
in interfaceProtocolDecoder
- Throws:
java.lang.Exception
- if failed to dispose all resources
-
-