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.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException