Package com.oss.asn1

Interface XERCoderInterface


public interface XERCoderInterface
This interface allows you to override the standard method that are used to XER encode ASN.1 types. Whenever the subclass of AbstractData implements the XERCoderInterface interface, its encode(XERWriter) method is called to generate XER encoding of that type.
Since:
ASN.1/Java 3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(XERWriter writer)
    Encodes this data value.
  • Method Details

    • encode

      void encode(XERWriter writer) throws EncodeFailedException, IOException
      Encodes this data value. This method is invoked when AbstractData value containing this data value is encoded. The character XML content is emitted using write() methods of the writer object. The data written is not analyzed in any way. It is user's responsibility to provide data compatible with XML specification.
      Parameters:
      writer - XERWriter to write encoded value to.
      Throws:
      EncodeFailedException - thrown if the customized method fails.
      IOException - thrown if error occurs while writing to a target stream.