Package org.bouncycastle.tls
Class ByteQueueInputStream
java.lang.Object
java.io.InputStream
org.bouncycastle.tls.ByteQueueInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
InputStream based on a ByteQueue implementation.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
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 classInputStream
-
read
public int read(byte[] b) - Overrides:
read
in classInputStream
-
read
public int read(byte[] b, int off, int len) - Overrides:
read
in classInputStream
-
skip
public long skip(long n) - Overrides:
skip
in classInputStream
-
available
public int available()- Overrides:
available
in classInputStream
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
-