public class ByteFilterInputStream extends 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.in| Constructor and Description |
|---|
ByteFilterInputStream(InputStream in,
ByteFilter<?> byteFilter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, read, reset, skippublic ByteFilterInputStream(InputStream in, ByteFilter<?> byteFilter)
ByteFilterInputStreampublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionCopyright © 2018 Arno Unkrig. All rights reserved.