|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.asn1new.ber.tlv.TLV
public class TLV
This class is used to store Tag, Length and Value decoded from a PDU.
Field Summary | |
---|---|
private int |
expectedLength
The expected length of the TLV's elements, if the current TLV is a constructed TLV. |
private Length |
length
The current Length being processed |
private TLV |
parent
Reference the TLV which contains the current TLV, if any. |
private Tag |
tag
The current Tag being processed |
private Value |
value
The current Value being processed |
Constructor Summary | |
---|---|
TLV()
Creates a new TLV object. |
Method Summary | |
---|---|
int |
getExpectedLength()
Get the TLV expected length. |
Length |
getLength()
|
TLV |
getParent()
|
int |
getSize()
The TLV size is calculated by adding the Tag's size, the Length's size and the Value's length, if any. |
Tag |
getTag()
|
Value |
getValue()
|
void |
reset()
Reset the TLV, so it can be reused for the next PDU decoding. |
void |
setExpectedLength(int expectedLength)
Set the new expected length of the current TLV. |
void |
setLength(Length length)
Add the TLV Length part |
void |
setParent(TLV parent)
|
java.lang.String |
toString()
Get a String representation of the TLV |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Tag tag
private Length length
private Value value
private TLV parent
private int expectedLength
Constructor Detail |
---|
public TLV()
Method Detail |
---|
public void reset()
public Length getLength()
public void setLength(Length length)
length
- The length to set.public Tag getTag()
public Value getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public int getSize()
public TLV getParent()
public void setParent(TLV parent)
parent
- The parent to set.public int getExpectedLength()
public void setExpectedLength(int expectedLength)
expectedLength
- The expectedLength to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |