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, readprotected 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
IOExceptionpublic final OutputStream getOutputStream()
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 int available()
available in class InputStreampublic void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStream