ASN1OutputStream (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.asn1

## Class ASN1OutputStream

- java.lang.Object
- - org.bouncycastle.asn1.ASN1OutputStream

- Direct Known Subclasses:
    DEROutputStream, DLOutputStream

      public class ASN1OutputStream
      extends java.lang.Object

  Stream that produces output based on the default encoding for the passed in objects.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ASN1OutputStream(java.io.OutputStream os)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `void` | `flush()`
    `protected void` | `writeNull()`
    `void` | `writeObject(ASN1Encodable obj)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ASN1OutputStream

          public ASN1OutputStream(java.io.OutputStream os)

  - ### Method Detail

    - #### writeNull

          protected void writeNull()
                            throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### writeObject

          public void writeObject(ASN1Encodable obj)
                           throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### close

          public void close()
                     throws java.io.IOException

      Throws:
        `java.io.IOException`

    - #### flush

          public void flush()
                     throws java.io.IOException

      Throws:
        `java.io.IOException`