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, resetprotected 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 InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException