Package org.bouncycastle.jcajce.provider.asymmetric.ec

## Class GMCipherSpi.ErasableOutputStream

- java.lang.Object
- - java.io.OutputStream
  - - java.io.ByteArrayOutputStream
    - - org.bouncycastle.jcajce.provider.asymmetric.ec.GMCipherSpi.ErasableOutputStream

- All Implemented Interfaces:
    `java.io.Closeable`, `java.io.Flushable`, `java.lang.AutoCloseable`
  Enclosing class:
    GMCipherSpi

      protected static final class GMCipherSpi.ErasableOutputStream
      extends java.io.ByteArrayOutputStream

- - ### Field Summary

    - ### Fields inherited from class java.io.ByteArrayOutputStream

      `buf, count`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ErasableOutputStream()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `erase()` |
    `byte[]` | `getBuf()` |

    - ### Methods inherited from class java.io.ByteArrayOutputStream

      `close, reset, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeTo`

    - ### Methods inherited from class java.io.OutputStream

      `flush, nullOutputStream, write`

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

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

- - ### Constructor Detail

    - #### ErasableOutputStream

          public ErasableOutputStream()

  - ### Method Detail

    - #### getBuf

          public byte[] getBuf()

    - #### erase

          public void erase()