org.apache.asn1.ber
Class LengthDecoder

java.lang.Object
  extended byorg.apache.asn1.codec.stateful.AbstractStatefulDecoder
      extended byorg.apache.asn1.ber.LengthDecoder
All Implemented Interfaces:
org.apache.asn1.codec.stateful.StatefulDecoder

public class LengthDecoder
extends org.apache.asn1.codec.stateful.AbstractStatefulDecoder

A BER TLV Length component decoder. This decoder delivers a Length instance to its callback. For efficiency the same Length object is reused. Callback implementations should not copy the handle to the Length object delivered but should copy the data if they need it over the long term.

Version:
$Rev: 157644 $
Author:
Apache Directory Project

Field Summary
private  Length length
          the Length component decoded from a BER TLV Tuple
 
Fields inherited from class org.apache.asn1.codec.stateful.AbstractStatefulDecoder
 
Constructor Summary
LengthDecoder()
           
 
Method Summary
 void decode(java.lang.Object encoded)
           
 
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

length

private final Length length
the Length component decoded from a BER TLV Tuple

Constructor Detail

LengthDecoder

public LengthDecoder()
Method Detail

decode

public void decode(java.lang.Object encoded)
            throws org.apache.asn1.codec.DecoderException
Throws:
org.apache.asn1.codec.DecoderException


Copyright © 2004-2006 . All Rights Reserved.