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 Detail

      • BEROutputStream

        public BEROutputStream​(java.io.OutputStream os)
        Base constructor.
        Parameters:
        os - target output stream.
    • Method Detail

      • writeObject

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