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
Constructors -
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:
readin classInputStream
-
read
public int read(byte[] b) - Overrides:
readin classInputStream
-
read
public int read(byte[] b, int off, int len) - Overrides:
readin classInputStream
-
skip
public long skip(long n) - Overrides:
skipin classInputStream
-
available
public int available()- Overrides:
availablein classInputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-