Package com.oss.util

Class BERTool.TLV

java.lang.Object
com.oss.util.BERTool.TLV
Enclosing class:
BERTool

public static class BERTool.TLV extends Object
Represents a BER encoding as a TAG, LENGTH, and VALUE triple.
  • Field Details

    • tag

      public BERTool.Tag tag
      The BER tag.
    • length

      public int length
      The number of octets occupied by the value or -1 when the value contains an indefinite BER encoding length.
    • value

      public ByteBuffer value
      Value octets.
  • Constructor Details

    • TLV

      public TLV()
  • Method Details

    • readFrom

      public static BERTool.TLV readFrom(ByteBuffer in)
      Creates an instance by reading it from a ByteBuffer.
      Parameters:
      in - the byte buffer.
      Returns:
      a new TLV instance.
      Throws:
      BERTool.BERException - when an error is detected in the BER encoding.