Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.mina.filter.codec
Class ProtocolDecoderAdapter

    java.lang.Object
      org.apache.mina.filter.codec.ProtocolDecoderAdapter

All Implemented Interfaces:
  ProtocolDecoder

Direct Known Subclasses:
  CumulativeProtocolDecoder, NettyDecoder

    public abstract class ProtocolDecoderAdapter

extends Object
implements ProtocolDecoder

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

Version:
  $Rev: 555855 $, $Date: 2007-07-13 12:19:00 +0900 (Fri, 13 Jul 2007) $
Author:
  The Apache Directory Project (mina-dev@directory.apache.org)

Constructor Summary
`ProtocolDecoderAdapter()`

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.

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`

Constructor Detail

### ProtocolDecoderAdapter

    public ProtocolDecoderAdapter()

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 interface `ProtocolDecoder`
  Throws:
    `Exception` - if the read data violated protocol specification

### 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`
  Throws:
    `Exception` - if failed to dispose all resources

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.