Package com.oss.asn1

Class XERCoder

java.lang.Object
com.oss.asn1.Coder
com.oss.asn1.XERCoder
All Implemented Interfaces:
XMLCoder

public final class XERCoder extends Coder implements XMLCoder
This class implements coding services for XML Encoding Rules (XER).
Since:
ASN.1/Java 6.1
  • Field Details

    • ID

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

    • enableXERCoderInterface

      public void enableXERCoderInterface()
      Enable user defined XER encodings which are generated by user classes which implement XERCoderInterface.
      Overrides:
      enableXERCoderInterface in class Coder
    • disableXERCoderInterface

      public void disableXERCoderInterface()
      Disable user defined XER encodings which are generated by user classes which implement XERCoderInterface.
      Overrides:
      disableXERCoderInterface in class Coder
    • enableCompact

      public void enableCompact()
      Do not generate whitespace into the XML document. In the compact mode the encoding is written without any whitespace as a single line of text. If the compact mode is disabled newlines are inserted as necessary and the indentation is applied.
      Overrides:
      enableCompact in class Coder
    • disableCompact

      public void disableCompact()
      Add whitespace as necessary to improve readability of XML document. In the compact mode the encoding is written without any whitespace as a single line of text. If the compact mode is disabled newlines are inserted as necessary and the indentation is applied.
      Overrides:
      disableCompact in class Coder
    • includeXMLDeclaration

      public void includeXMLDeclaration()
      Make the XML document contain the initial XML declaration.
      Overrides:
      includeXMLDeclaration in class Coder
    • excludeXMLDeclaration

      public void excludeXMLDeclaration()
      Initial XML declaration is excluded from the XML document.
      Overrides:
      excludeXMLDeclaration in class Coder
    • setIndentWidth

      public void setIndentWidth(int width)
      Set indentation width for generating whitespace
      Overrides:
      setIndentWidth in class Coder
      Parameters:
      width - number of spaces for indenting
    • getIndentWidth

      public int getIndentWidth()
      Get the number of spaces allocated for indenting
      Overrides:
      getIndentWidth in class Coder
      Returns:
      indentation width setting
    • getTransferSyntax

      public TransferSyntax getTransferSyntax()
      Specified by:
      getTransferSyntax in class Coder
      Returns:
      identifier of this coder encoding rules.