public class FastByteArrayInputStream
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf
Our byte buffer
|
protected int |
count
Number of bytes that we can read from the buffer
|
protected int |
pos
Number of bytes that have been read from the buffer
|
Constructor and Description |
---|
FastByteArrayInputStream(byte[] buf,
int count) |
protected byte[] buf
protected int count
protected int pos
public FastByteArrayInputStream(byte[] buf, int count)
buf
- count
- public final int available()
available
in class java.io.InputStream
public final int read()
read
in class java.io.InputStream
public final int read(byte[] b, int off, int len)
read
in class java.io.InputStream
b
- off
- len
- public final long skip(long n)
skip
in class java.io.InputStream
n
-