org.apache.directory.shared.asn1.ber.tlv
Class TLVStateEnum

java.lang.Object
  extended by org.apache.directory.shared.asn1.ber.tlv.TLVStateEnum

public class TLVStateEnum
extends java.lang.Object

Stores the different states of a PDU parsing.

Version:
$Rev: 664290 $, $Date: 2008-06-07 08:28:06 +0200 (Sa, 07 Jun 2008) $
Author:
Apache Directory Project

Field Summary
static int LENGTH_STATE_END
          End means that the Length is totally read
static int LENGTH_STATE_PENDING
          Pending means that the Type length is contained in more that one byte
static int LENGTH_STATE_START
          Start means that the decoding hasn't read the first byte
static int PDU_DECODED
          The decoding of a PDU is done
static int TAG_STATE_END
          End means that the Type is totally read
static int TAG_STATE_OVERFLOW
          Overflow could have two meaning : either there are more than 5 bytes to encode the value (5 bytes = 5bits + 4*7 bits = 33 bits) or the value that is represented by those bytes is over MAX_INTEGER
static int TAG_STATE_PENDING
          Pending means that the Type Tag is contained in more that one byte
static int TAG_STATE_START
          Start means that the deconding hasn't read the first byte
static int TLV_STATE_DONE
          The decoding of a TLV is done
static int VALUE_STATE_END
          End means that the Value is totally read
static int VALUE_STATE_PENDING
          Pending means that the Type Value is contained in more that one byte
static int VALUE_STATE_START
          Start means that the decoding hasn't read the first byte
 
Constructor Summary
TLVStateEnum()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_STATE_START

public static final int TAG_STATE_START
Start means that the deconding hasn't read the first byte

See Also:
Constant Field Values

TAG_STATE_PENDING

public static final int TAG_STATE_PENDING
Pending means that the Type Tag is contained in more that one byte

See Also:
Constant Field Values

TAG_STATE_END

public static final int TAG_STATE_END
End means that the Type is totally read

See Also:
Constant Field Values

TAG_STATE_OVERFLOW

public static final int TAG_STATE_OVERFLOW
Overflow could have two meaning : either there are more than 5 bytes to encode the value (5 bytes = 5bits + 4*7 bits = 33 bits) or the value that is represented by those bytes is over MAX_INTEGER

See Also:
Constant Field Values

LENGTH_STATE_START

public static final int LENGTH_STATE_START
Start means that the decoding hasn't read the first byte

See Also:
Constant Field Values

LENGTH_STATE_PENDING

public static final int LENGTH_STATE_PENDING
Pending means that the Type length is contained in more that one byte

See Also:
Constant Field Values

LENGTH_STATE_END

public static final int LENGTH_STATE_END
End means that the Length is totally read

See Also:
Constant Field Values

VALUE_STATE_START

public static final int VALUE_STATE_START
Start means that the decoding hasn't read the first byte

See Also:
Constant Field Values

VALUE_STATE_PENDING

public static final int VALUE_STATE_PENDING
Pending means that the Type Value is contained in more that one byte

See Also:
Constant Field Values

VALUE_STATE_END

public static final int VALUE_STATE_END
End means that the Value is totally read

See Also:
Constant Field Values

TLV_STATE_DONE

public static final int TLV_STATE_DONE
The decoding of a TLV is done

See Also:
Constant Field Values

PDU_DECODED

public static final int PDU_DECODED
The decoding of a PDU is done

See Also:
Constant Field Values
Constructor Detail

TLVStateEnum

public TLVStateEnum()


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.