org.bouncycastle.util.io

## Class LimitedBuffer

- java.lang.Object
- - java.io.OutputStream
  - - org.bouncycastle.util.io.LimitedBuffer

- All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

      public class LimitedBuffer
      extends java.io.OutputStream

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LimitedBuffer(int limit)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `copyTo(byte[] b, int off)`
    `int` | `limit()`
    `void` | `reset()`
    `int` | `size()`
    `void` | `write(byte[] b)`
    `void` | `write(byte[] b, int off, int len)`
    `void` | `write(int b)`

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

      `close, flush`

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

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

- - ### Constructor Detail

    - #### LimitedBuffer

          public LimitedBuffer(int limit)

  - ### Method Detail

    - #### copyTo

          public int copyTo(byte[] b,
                            int off)

    - #### limit

          public int limit()

    - #### reset

          public void reset()

    - #### size

          public int size()

    - #### write

          public void write(int b)

      Specified by:
        `write` in class `java.io.OutputStream`

    - #### write

          public void write(byte[] b)

      Overrides:
        `write` in class `java.io.OutputStream`

    - #### write

          public void write(byte[] b,
                            int off,
                            int len)

      Overrides:
        `write` in class `java.io.OutputStream`