Package org.apache.directory.api.asn1
Interface Asn1Object
-
- All Known Subinterfaces:
CodecControl<E>
,Decorator<E>
- All Known Implementing Classes:
BasicControlDecorator
,ControlDecorator
public interface Asn1Object
An abstract class which implements basic TLV operations.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
computeLength()
Compute the object length, which is the sum of all inner length.ByteBuffer
encode(ByteBuffer buffer)
Encode the object to a PDU.
-
-
-
Method Detail
-
computeLength
int computeLength()
Compute the object length, which is the sum of all inner length.- Returns:
- The object's computed length
-
encode
ByteBuffer encode(ByteBuffer buffer) throws EncoderException
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
-
-