org.apache.asn1.codec.stateful.examples
Class HexDecoder

java.lang.Object
  extended by org.apache.asn1.codec.stateful.AbstractStatefulDecoder
      extended by org.apache.asn1.codec.stateful.examples.HexDecoder
All Implemented Interfaces:
StatefulDecoder

public class HexDecoder
extends AbstractStatefulDecoder

Document me.

Author:
Apache Directory Project $Rev: 161723 $

Field Summary
private  java.nio.ByteBuffer decoded
           
private  boolean expectingMsn
           
private  byte lsn
           
private  byte msn
           
 
Constructor Summary
HexDecoder()
           
 
Method Summary
 void decode(java.lang.Object chunk)
          Decodes a peice of encoded data.
private  byte getNibble(byte ch)
           
 
Methods inherited from class org.apache.asn1.codec.stateful.AbstractStatefulDecoder
decodeOccurred, getDecoderMonitor, setCallback, setDecoderMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

decoded

private java.nio.ByteBuffer decoded

lsn

private byte lsn

msn

private byte msn

expectingMsn

private boolean expectingMsn
Constructor Detail

HexDecoder

public HexDecoder()
Method Detail

decode

public void decode(java.lang.Object chunk)
            throws DecoderException
Description copied from interface: StatefulDecoder
Decodes a peice of encoded data. The nature of this call, synchronous verses asynchonous, with respect to driving the actual decoding of the encoded data argument is determined by an implementation. A return from this method does not guarrantee any callbacks: zero or more callbacks may occur during this call.

Parameters:
chunk - an object representing a peice of encoded data
Throws:
DecoderException

getNibble

private byte getNibble(byte ch)
                throws DecoderException
Throws:
DecoderException


Copyright © 2004-2009 . All Rights Reserved.