Package org.bouncycastle.tls
Class ByteQueueInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.bouncycastle.tls.ByteQueueInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class ByteQueueInputStream extends java.io.InputStreamInputStream based on a ByteQueue implementation.
-
-
Constructor Summary
Constructors Constructor Description ByteQueueInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBytes(byte[] buf)voidaddBytes(byte[] buf, int bufOff, int bufLen)intavailable()voidclose()intpeek(byte[] buf)intread()intread(byte[] b)intread(byte[] b, int off, int len)longskip(long n)
-
-
-
Method Detail
-
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 classjava.io.InputStream
-
read
public int read(byte[] b)
- Overrides:
readin classjava.io.InputStream
-
read
public int read(byte[] b, int off, int len)- Overrides:
readin classjava.io.InputStream
-
skip
public long skip(long n)
- Overrides:
skipin classjava.io.InputStream
-
available
public int available()
- Overrides:
availablein classjava.io.InputStream
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream
-
-