Package com.oss.asn1

Class BERCoder

java.lang.Object
com.oss.asn1.Coder
com.oss.asn1.BERCoder
All Implemented Interfaces:
BinaryCoder

public final class BERCoder extends Coder implements BinaryCoder
This class implements coding services for Basic Encoding Rules (BER).
Since:
ASN.1/Java 1.0-beta A
  • Field Details

    • ID

      public static final String ID
      The ID string identifies BER encoding rules. The string should be used as relayID when storing unknown extension additions encoded with BER.
      See Also:
  • Method Details

    • useDefiniteLengthEncoding

      public void useDefiniteLengthEncoding()
      Use Definite Length Encoding when encoding with the Basic Encoding Rules.
      Overrides:
      useDefiniteLengthEncoding in class Coder
    • useIndefiniteLengthEncoding

      public void useIndefiniteLengthEncoding()
      Use Indefinite Length Encoding when encoding with the Basic Encoding Rules.
      Overrides:
      useIndefiniteLengthEncoding in class Coder
    • usingDefiniteLengthEncoding

      public boolean usingDefiniteLengthEncoding()
      Determine whether DEFINITE length encoding is in effect.
      Overrides:
      usingDefiniteLengthEncoding in class Coder
      Returns:
      true if DEFINITE length encoding is in effect.