org.bouncycastle.asn1

## Class ASN1Generator

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

- Direct Known Subclasses:
    BERGenerator, DERGenerator, DLGenerator

      public abstract class ASN1Generator
      extends java.lang.Object

  Basic class for streaming generators.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected java.io.OutputStream` | `_out`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ASN1Generator(java.io.OutputStream out)` Base constructor.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract java.io.OutputStream` | `getRawOutputStream()` Return the actual stream object encodings are written to.

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

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

- - ### Field Detail

    - #### _out

          protected java.io.OutputStream _out

  - ### Constructor Detail

    - #### ASN1Generator

          public ASN1Generator(java.io.OutputStream out)

      Base constructor.
      Parameters:
        `out` - the end output stream that object encodings are written to.

  - ### Method Detail

    - #### getRawOutputStream

          public abstract java.io.OutputStream getRawOutputStream()

      Return the actual stream object encodings are written to.
      Returns:
        the stream that is directly encoded to.