T - The type of the object returned by run(InputStream, OutputStream)public interface ByteFilter<T>
InputStream and writes bytes to an OutputStream.| Modifier and Type | Method and Description |
|---|---|
T |
run(InputStream in,
OutputStream out)
Reads bytes from the given
InputStream (up to end-of-input or not), and writes bytes to the given
OutputStream. |
@Nullable T run(InputStream in, OutputStream out) throws IOException
InputStream (up to end-of-input or not), and writes bytes to the given
OutputStream. This is similar to the "pipeline" pattern known from UNIX shells.IOExceptionCopyright © 2018 Arno Unkrig. All rights reserved.