public class FastByteArrayInputStream extends InputStream
| Modifier and Type | Field and Description | 
|---|---|
| protected byte[] | bufOur byte buffer | 
| protected int | countNumber of bytes that we can read from the buffer | 
| protected int | posNumber of bytes that have been read from the buffer | 
| Constructor and Description | 
|---|
| FastByteArrayInputStream(byte[] buf) | 
| FastByteArrayInputStream(byte[] buf,
                        int count) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | available() | 
| int | read() | 
| int | read(byte[] b,
    int off,
    int len) | 
| long | skip(long n) | 
close, mark, markSupported, read, resetprotected byte[] buf
protected int count
protected int pos
public FastByteArrayInputStream(byte[] buf)
public FastByteArrayInputStream(byte[] buf,
                                int count)
public final int available()
available in class InputStreampublic final int read()
read in class InputStreampublic final int read(byte[] b,
                      int off,
                      int len)
read in class InputStreampublic final long skip(long n)
skip in class InputStreamCopyright © 2022 The Apache Software Foundation. All rights reserved.