Package com.oss.asn1

Class Position

java.lang.Object
com.oss.asn1.Position

public class Position extends Object
The Position class holds information about size and position of a bitfield inside encoded data buffer. For BER encoded data it also specifies whether the encoding is primitive or constructed.
Since:
ASN.1/Java 4.0 Beta A
  • Constructor Details

    • Position

      public Position(int offset, int size)
      The constructor.
      Parameters:
      offset - offset of encoded field in bits
      size - size of encoded field in bits
    • Position

      public Position(int offset, int size, boolean isConstructed)
      The constructor.
      Parameters:
      offset - offset of encoded field in bits
      size - size of encoded field in bits
      isConstructed - true if the field is BER constructed field
  • Method Details

    • getOffset

      public int getOffset()
      Return offset.
      Returns:
      offset of encoded field in bits.
    • getSize

      public int getSize()
      Return size.
      Returns:
      size of encoded field in bits.
    • isConstructed

      public boolean isConstructed()
      Return indication of constructedness.
      Returns:
      true if encoded field is a BER constructed field.