public class ByteFilterInputStream
extends java.io.FilterInputStream
FilterInputStream that transforms the byte stream through a ByteFilter. Any IOException
and RuntimeException that ByteFilter.run(java.io.InputStream, java.io.OutputStream) throws is caught and rethrown by the read()
methods of this object.| Constructor and Description |
|---|
ByteFilterInputStream(java.io.InputStream in,
ByteFilter<?> byteFilter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
public ByteFilterInputStream(java.io.InputStream in,
ByteFilter<?> byteFilter)
ByteFilterInputStreampublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.io.IOException