|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.jkristian.io.FilteredByteInputStream
public abstract class FilteredByteInputStream
A stream that produces input by reading from an underlying source and optionally transforming the data through a chain of FilterOutputStreams.
This class is not thread-safe.
Field Summary | |
---|---|
static int |
CHUNK_LENGTH
The default amount of data (from the underlying source) to process at a time. |
Constructor Summary | |
---|---|
FilteredByteInputStream()
|
Method Summary | |
---|---|
int |
available()
|
void |
close()
|
protected abstract int |
filterInput()
Copy data from the underlying input stream into the filter chain. |
protected void |
flush()
Flush the filters into the output. |
java.io.OutputStream |
getByteFilter()
|
void |
mark(int readAheadLimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
protected abstract boolean |
ready()
|
void |
reset()
|
void |
setByteFilter(java.io.OutputStream filter)
Set the tail of the chain of FilterOutputStream objects. |
long |
skip(long n)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CHUNK_LENGTH
Constructor Detail |
---|
public FilteredByteInputStream()
Method Detail |
---|
public java.io.OutputStream getByteFilter()
public void setByteFilter(java.io.OutputStream filter)
protected abstract boolean ready() throws java.io.IOException
java.io.IOException
protected abstract int filterInput() throws java.io.IOException
java.io.IOException
protected void flush() throws java.io.IOException
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 int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read() 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 int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.InputStream
public void mark(int readAheadLimit)
mark
in class java.io.InputStream
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |