public class ByteFilterOutputStream extends FilterOutputStream
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 write(byte[],
int, int) methods of this object.out| Constructor and Description |
|---|
ByteFilterOutputStream(ByteFilter<?> byteFilter,
OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, writepublic ByteFilterOutputStream(ByteFilter<?> byteFilter, OutputStream out)
ByteFilterOutputStreampublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2018 Arno Unkrig. All rights reserved.