Interface Asn1Object


public interface Asn1Object
An abstract class which implements basic TLV operations.
Author:
Apache Directory Project
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Compute the object length, which is the sum of all inner length.
    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

      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