Interface Asn1Object
public interface Asn1Object
An abstract class which implements basic TLV operations.
- Author:
- Apache Directory Project
-
Method Summary
Modifier and TypeMethodDescriptionintCompute the object length, which is the sum of all inner length.encode(ByteBuffer buffer) Encode the object to a PDU.
-
Method Details
-
computeLength
int computeLength()Compute the object length, which is the sum of all inner length.- Returns:
- The object's computed length
-
encode
Encode the object to a PDU.- Parameters:
buffer- The buffer where to put the PDU- Returns:
- The encoded PDU.
- Throws:
EncoderException- if the buffer can't be encoded
-