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

org.bouncycastle.crypto.tls

## Class ByteQueueInputStream

- java.lang.Object
- - java.io.InputStream
  - - org.bouncycastle.crypto.tls.ByteQueueInputStream

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

      public class ByteQueueInputStream
      extends java.io.InputStream

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ByteQueueInputStream()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addBytes(byte[] bytes)`
    `int` | `available()`
    `void` | `close()`
    `int` | `peek(byte[] buf)`
    `int` | `read()`
    `int` | `read(byte[] b)`
    `int` | `read(byte[] b, int off, int len)`
    `long` | `skip(long n)`

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

      `mark, markSupported, reset`

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

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

- - ### Constructor Detail

    - #### ByteQueueInputStream

          public ByteQueueInputStream()

  - ### Method Detail

    - #### addBytes

          public void addBytes(byte[] bytes)

    - #### peek

          public int peek(byte[] buf)

    - #### read

          public int read()

      Specified by:
        `read` in class `java.io.InputStream`

    - #### read

          public int read(byte[] b)

      Overrides:
        `read` in class `java.io.InputStream`

    - #### read

          public int read(byte[] b,
                 int off,
                 int len)

      Overrides:
        `read` in class `java.io.InputStream`

    - #### skip

          public long skip(long n)

      Overrides:
        `skip` in class `java.io.InputStream`

    - #### available

          public int available()

      Overrides:
        `available` in class `java.io.InputStream`

    - #### close

          public void close()

      Specified by:
        `close` in interface `java.io.Closeable`
      Specified by:
        `close` in interface `java.lang.AutoCloseable`
      Overrides:
        `close` in class `java.io.InputStream`