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, skip
public ByteFilterInputStream(InputStream in, ByteFilter<?> byteFilter)
ByteFilterInputStream
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
Copyright © 2018 Arno Unkrig. All rights reserved.