public class FastByteArrayInputStream extends 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) |
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, reset
protected 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 InputStream
public final int read()
read
in class InputStream
public final int read(byte[] b, int off, int len)
read
in class InputStream
public final long skip(long n)
skip
in class InputStream
Copyright © 2021 The Apache Software Foundation. All rights reserved.