|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Asn1Object
An abstract class which implements basic TLV operations.
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
int getCurrentLength()
int computeLength()
ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
buffer - The buffer where to put the PDU
EncoderException - 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||