Package com.oss.asn1

Interface XERWriter


public interface XERWriter
This interface defines methods which are used to write XER encodings to a target output stream. The methods are invoked by user-defined XER encode() methods.
Since:
ASN.1/Java 6.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(byte[] b, int off, int len)
    Write the array of bytes.
    void
    write(int b)
    Write single octet.
    void
    Write a string doing UTF8 encoding.
    void
    writeChar(int character)
    Write a character doing UTF8 encoding.
  • Method Details

    • write

      void write(int b) throws IOException
      Write single octet.
      Parameters:
      b - octet to write.
      Throws:
      IOException - is thrown if an error occurs when writing to a target stream
    • write

      void write(byte[] b, int off, int len) throws IOException
      Write the array of bytes.
      Parameters:
      b - byte array to write.
      off - starting offset in the byte array.
      len - the number of bytes to write.
      Throws:
      IOException - is thrown if an error occurs when writing to a target stream
    • write

      void write(String s) throws IOException, EncodeFailedException
      Write a string doing UTF8 encoding.
      Parameters:
      s - string to write.
      Throws:
      IOException - is thrown if an error occurs when writing to a target stream
      EncodeFailedException - is thrown if illegal character is detected
    • writeChar

      void writeChar(int character) throws IOException, EncodeFailedException
      Write a character doing UTF8 encoding.
      Parameters:
      character - a character to write.
      Throws:
      IOException - is thrown if an error occurs when writing to a target stream
      EncodeFailedException - is thrown if illegal character is detected