public class BufferInputStream
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
protected Buffer |
buffer |
protected int |
position |
protected int |
resetPosition |
Constructor and Description |
---|
BufferInputStream(Buffer buffer) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
protected Buffer buffer
protected int position
protected int resetPosition
public BufferInputStream(Buffer buffer)
public int available()
available
in class java.io.InputStream
public void mark(int readlimit)
mark
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read()
read
in class java.io.InputStream
public int read(byte[] b)
read
in class java.io.InputStream
public int read(byte[] b, int off, int len)
read
in class java.io.InputStream
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException