public interface Asn1Object
| Modifier and Type | Method and Description |
|---|---|
void |
addLength(int length)
Add a length to the object
|
int |
computeLength()
Compute the object length, which is the sum of all inner length.
|
ByteBuffer |
encode(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 addLength(int length)
throws DecoderException
length - The length to add.DecoderException - Thrown if the current length exceed the expected lengthint computeLength()
ByteBuffer encode(ByteBuffer buffer) throws EncoderException
buffer - The buffer where to put the PDUEncoderException - if the buffer can't be encodedint getCurrentLength()
int getExpectedLength()
Asn1Object getParent()
void setCurrentLength(int currentLength)
currentLength - The currentLength to set.void setExpectedLength(int expectedLength)
expectedLength - The expectedLength to set.Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.