org.apache.mina.filter.codec

Class ProtocolDecoderAdapter

Implemented Interfaces:
ProtocolDecoder
Known Direct Subclasses:
CumulativeProtocolDecoder

public abstract class ProtocolDecoderAdapter
extends java.lang.Object
implements ProtocolDecoder

An abstract ProtocolDecoder implementation for those who don't need ProtocolDecoder.finishDecode(IoSession,ProtocolDecoderOutput) nor ProtocolDecoder.dispose(IoSession) method.

Method Summary

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.

Method Details

dispose

public void dispose(IoSession session)
            throws Exception
Override this method to dispose all resources related with this decoder. The default implementation does nothing.
Specified by:
dispose in interface ProtocolDecoder

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 interface ProtocolDecoder