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