public abstract class PushedInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
buf |
protected int |
marklimit |
protected int |
markpos |
protected OutputStream |
outputStream |
protected int |
readpos |
protected int |
writepos |
Constructor and Description |
---|
PushedInputStream() |
PushedInputStream(int size) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
protected abstract void |
fill(int requestedBytes)
Called when more bytes need to be written into this stream
(as an OutputStream).
|
OutputStream |
getOutputStream()
Returns the linked output stream.
|
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len)
Read characters into a portion of an array, reading from the underlying
stream at most once if necessary.
|
void |
reset() |
long |
skip(long n) |
close, read
protected byte[] buf
protected int writepos
protected int readpos
protected int markpos
protected int marklimit
protected OutputStream outputStream
public PushedInputStream()
public PushedInputStream(int size)
protected abstract void fill(int requestedBytes) throws IOException
IOException
public final OutputStream getOutputStream()
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 int available()
available
in class InputStream
public void mark(int readlimit)
mark
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream