public class PrefixedInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
byteMax |
protected int |
bytePosition |
protected ByteBuffer |
bytes |
protected java.io.InputStream |
remainderStream |
| Constructor and Description |
|---|
PrefixedInputStream(ByteBuffer bytes,
java.io.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) |
protected final ByteBuffer bytes
protected final java.io.InputStream remainderStream
protected int bytePosition
protected int byteMax
public PrefixedInputStream(ByteBuffer bytes, java.io.InputStream remainderStream)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException