Class ByteQueueInputStream

java.lang.Object
java.io.InputStream
org.bouncycastle.tls.ByteQueueInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ByteQueueInputStream extends InputStream
InputStream based on a ByteQueue implementation.
  • Constructor Details

    • ByteQueueInputStream

      public ByteQueueInputStream()
  • Method Details

    • addBytes

      public void addBytes(byte[] buf)
    • addBytes

      public void addBytes(byte[] buf, int bufOff, int bufLen)
    • peek

      public int peek(byte[] buf)
    • read

      public int read()
      Specified by:
      read in class InputStream
    • read

      public int read(byte[] b)
      Overrides:
      read in class InputStream
    • read

      public int read(byte[] b, int off, int len)
      Overrides:
      read in class InputStream
    • skip

      public long skip(long n)
      Overrides:
      skip in class InputStream
    • available

      public int available()
      Overrides:
      available in class InputStream
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream