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
|
int getCurrentLength()
int computeLength()
ByteBuffer encode(ByteBuffer buffer) throws EncoderException
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedint getExpectedLength()
void addLength(int length) throws DecoderException
length
- The length to add.DecoderException
- Thrown if the current length exceed the expected lengthvoid setExpectedLength(int expectedLength)
expectedLength
- The expectedLength to set.void setCurrentLength(int currentLength)
currentLength
- The currentLength to set.Asn1Object getParent()
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.