|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.torweg.pulse.util.streamscanner.InputStreamScannerChain
public final class InputStreamScannerChain
is an analogon to OutputStreamScannerChain for use with
InputStreams; for more information see
OutputStreamScannerChain.
| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
InputStreamScannerChain(java.io.InputStream in,
java.lang.String ct, User u)
creates a new OutputStreamScannerChain for the given
OutputStream. |
|
| Method Summary | |
|---|---|
void |
close()
closes the scanner chain and its underlying stream. |
int |
read()
reads, scans and returns the next byte of the underlying InputStream. |
int |
read(byte[] b)
reads, scans and then returns the given byte array to the underlying InputStream. |
int |
read(byte[] b,
int off,
int len)
reads, scans and then returns len bytes from the specified byte array starting at offset off to the underlying InputStream. |
| Methods inherited from class java.io.FilterInputStream |
|---|
available, mark, markSupported, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamScannerChain(java.io.InputStream in,
java.lang.String ct, User u)
OutputStreamScannerChain for the given
OutputStream.
in - the InputStream to be filteredct - the content-type of the scanned streamu - the user| Method Detail |
|---|
public int read(byte[] b)
throws StreamException, InacceptableStreamException
InputStream.
read in class java.io.FilterInputStreamb - the byte array to be read
StreamException - on errors writing to the underlying stream
InacceptableStreamException - if the scanned stream is not acceptable (e.g. it contains a
virus)
public int read(byte[] b,
int off,
int len)
throws StreamException, InacceptableStreamException
InputStream.
read in class java.io.FilterInputStreamb - the byte arrayoff - the offsetlen - the length
StreamException - on errors writing to the underlying stream
InacceptableStreamException - if the scanned stream is not acceptable (e.g. it contains a
virus)
public int read()
throws StreamException, InacceptableStreamException
InputStream.
read in class java.io.FilterInputStreamStreamException - on errors writing to the underlying stream
InacceptableStreamException - if the scanned stream is not acceptable (e.g. it contains a
virus)
public void close()
throws java.io.IOException, InacceptableStreamException
close in interface java.io.Closeableclose in class java.io.FilterInputStreamjava.io.IOException - on errors closing the underlying stream or any of the
scanners
InacceptableStreamException - if the scanned stream is not acceptable (e.g. it contains a
virus)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||