|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.io.StreamFilter
Generic type for I/O stream filters.
A stream filter is the association of mechanism for filtering an InputStream
- and
the corresponding de-filtering of an OutputStream
.
Typical implementations are compressor like Zip
or Huffman
.
Constructor Summary | |
StreamFilter()
|
Method Summary | |
abstract java.io.InputStream |
filterInput(java.io.InputStream input)
Filters (decompress) the archive input. |
abstract java.io.OutputStream |
filterOutput(java.io.OutputStream output)
Filters (compress) the archive output. |
void |
finishFilter(java.io.OutputStream output)
Finishes the archive output filtering. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StreamFilter()
Method Detail |
public abstract java.io.InputStream filterInput(java.io.InputStream input) throws java.io.IOException
input
- the archive input.
java.io.IOException
public abstract java.io.OutputStream filterOutput(java.io.OutputStream output) throws java.io.IOException
output
- the archive output.
java.io.IOException
public void finishFilter(java.io.OutputStream output) throws java.io.IOException
output
- the filtered output.
Typically a statement like ((GZipOutputStream) output).finish()
.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |