org.apache.mina.filter.codec.asn1
Class Asn1CodecDecoder

java.lang.Object
  extended by org.apache.mina.filter.codec.asn1.Asn1CodecDecoder
All Implemented Interfaces:
ProtocolDecoder

public class Asn1CodecDecoder
extends Object
implements ProtocolDecoder

Adapts StatefulDecoder to MINA ProtocolDecoder

Version:
$Rev: 391231 $, $Date: 2006-04-04 15:21:55 +0900 (Tue, 04 Apr 2006) $,
Author:
The Apache Directory Project (mina-dev@directory.apache.org)

Constructor Summary
Asn1CodecDecoder(StatefulDecoder decoder)
           
 
Method Summary
 void decode(IoSession session, ByteBuffer in, ProtocolDecoderOutput out)
          Decodes binary or protocol-specific content into higher-level message objects.
 void dispose(IoSession session)
          Releases all resources related with this decoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Asn1CodecDecoder

public Asn1CodecDecoder(StatefulDecoder decoder)
Method Detail

decode

public void decode(IoSession session,
                   ByteBuffer in,
                   ProtocolDecoderOutput out)
            throws DecoderException
Description copied from interface: ProtocolDecoder
Decodes binary or protocol-specific content into higher-level message objects. MINA invokes ProtocolDecoder.decode(IoSession, ByteBuffer, ProtocolDecoderOutput) method with read data, and then the decoder implementation puts decoded messages into ProtocolDecoderOutput.

Specified by:
decode in interface ProtocolDecoder
Throws:
DecoderException

dispose

public void dispose(IoSession session)
             throws Exception
Description copied from interface: ProtocolDecoder
Releases all resources related with this decoder.

Specified by:
dispose in interface ProtocolDecoder
Throws:
Exception - if failed to dispose all resources