Class BEROutputStream


public class BEROutputStream extends DEROutputStream
A class which writes indefinite and definite length objects. Objects which specify DER will be encoded accordingly, but DL or BER objects will be encoded as defined.
  • Constructor Details

    • BEROutputStream

      public BEROutputStream(OutputStream os)
      Base constructor.
      Parameters:
      os - target output stream.
  • Method Details

    • writeObject

      public void writeObject(Object obj) throws IOException
      Write out an ASN.1 object.
      Parameters:
      obj - the object to be encoded.
      Throws:
      IOException - if there is an issue on encoding or output of the object.