Class MessageDecoderAdapter
- java.lang.Object
-
- org.apache.mina.filter.codec.demux.MessageDecoderAdapter
-
- All Implemented Interfaces:
MessageDecoder
public abstract class MessageDecoderAdapter extends Object implements MessageDecoder
An abstractMessageDecoder
implementation for those who don't need to implementMessageDecoder.finishDecode(IoSession, ProtocolDecoderOutput)
method.- Author:
- Apache MINA Project
-
-
Field Summary
-
Fields inherited from interface org.apache.mina.filter.codec.demux.MessageDecoder
NEED_DATA, NOT_OK, OK
-
-
Constructor Summary
Constructors Constructor Description MessageDecoderAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.demux.MessageDecoder
decodable, decode
-
-
-
-
Method Detail
-
finishDecode
public void finishDecode(IoSession session, ProtocolDecoderOutput out) throws Exception
Override this method to deal with the closed connection. The default implementation does nothing.- Specified by:
finishDecode
in interfaceMessageDecoder
- Parameters:
session
- The current sessionout
- The instance ofProtocolDecoderOutput
that contains the decoded messages- Throws:
Exception
- if the read data violated protocol specification
-
-