public class PrefixedInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
protected int |
byteMax |
protected int |
bytePosition |
protected ByteBuffer |
bytes |
protected InputStream |
remainderStream |
Constructor and Description |
---|
PrefixedInputStream(ByteBuffer bytes,
InputStream remainderStream)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
available, mark, markSupported, read, reset
protected final ByteBuffer bytes
protected final InputStream remainderStream
protected int bytePosition
protected int byteMax
public PrefixedInputStream(ByteBuffer bytes, InputStream remainderStream)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException