org.apache.asn1.codec.mina
Class Asn1CodecDecoder

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

public class Asn1CodecDecoder
extends java.lang.Object
implements org.apache.mina.protocol.ProtocolDecoder

Adapts StatefulDecoder to MINA ProtocolDecoder

Version:
$Rev: 161723 $, $Date: 2005-04-18 06:10:12 +0200 (Mon, 18 Apr 2005) $,
Author:
Trustin Lee (trustin@apache.org)

Nested Class Summary
private  class Asn1CodecDecoder.DecoderCallbackImpl
           
 
Field Summary
private  Asn1CodecDecoder.DecoderCallbackImpl callback
           
private  StatefulDecoder decoder
           
 
Constructor Summary
Asn1CodecDecoder(StatefulDecoder decoder)
           
 
Method Summary
 void decode(org.apache.mina.protocol.ProtocolSession session, org.apache.mina.common.ByteBuffer in, org.apache.mina.protocol.ProtocolDecoderOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

decoder

private final StatefulDecoder decoder

callback

private final Asn1CodecDecoder.DecoderCallbackImpl callback
Constructor Detail

Asn1CodecDecoder

public Asn1CodecDecoder(StatefulDecoder decoder)
Method Detail

decode

public void decode(org.apache.mina.protocol.ProtocolSession session,
                   org.apache.mina.common.ByteBuffer in,
                   org.apache.mina.protocol.ProtocolDecoderOutput out)
            throws org.apache.mina.protocol.ProtocolViolationException
Specified by:
decode in interface org.apache.mina.protocol.ProtocolDecoder
Throws:
org.apache.mina.protocol.ProtocolViolationException


Copyright © 2004-2006 . All Rights Reserved.