|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.directory.shared.asn1.Asn1Object
public abstract class Asn1Object
An abstract class which implements basic TLV operations.
| Field Summary | |
|---|---|
protected Asn1Object |
parent
The encapsulating Object |
| Constructor Summary | |
|---|---|
Asn1Object()
|
|
| Method Summary | |
|---|---|
void |
addLength(int length)
Add a length to the object |
abstract int |
computeLength()
Compute the object length, which is the sum of all inner length. |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the object to a PDU. |
int |
getCurrentLength()
Get the current object length, which is the sum of all inner length already decoded. |
int |
getExpectedLength()
Get the expected object length. |
Asn1Object |
getParent()
Get the parent |
void |
setCurrentLength(int currentLength)
Set the current length |
void |
setExpectedLength(int expectedLength)
Set the expected length |
void |
setParent(Asn1Object parent)
Set the parent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient Asn1Object parent
| Constructor Detail |
|---|
public Asn1Object()
| Method Detail |
|---|
public int getCurrentLength()
public abstract int computeLength()
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws EncoderException
buffer - The buffer where to put the PDU
EncoderExceptionpublic int getExpectedLength()
public void addLength(int length)
throws DecoderException
length - The length to add.
DecoderException - Thrown if the current length exceed the expected lengthpublic void setExpectedLength(int expectedLength)
expectedLength - The expectedLength to set.public void setCurrentLength(int currentLength)
currentLength - The currentLength to set.public Asn1Object getParent()
public void setParent(Asn1Object parent)
parent - The parent to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||