@FunctionalInterface
public interface StreamFilter
InputStream
to produce the
content of an OutputStream
.Modifier and Type | Method and Description |
---|---|
default void |
process(java.io.InputStream in,
java.io.OutputStream out)
Same as
processE but masks
any exception into a runtime exception so we can use this interface as
a functional interface. |
void |
processE(java.io.InputStream in,
java.io.OutputStream out)
Reads from the input stream and writes to the output stream.
|
default void process(java.io.InputStream in, java.io.OutputStream out)
processE
but masks
any exception into a runtime exception so we can use this interface as
a functional interface.in
- data to read.out
- where to write the output data.void processE(java.io.InputStream in, java.io.OutputStream out) throws java.lang.Exception
in
- the data to read.out
- where this method will write its output data.java.lang.NullPointerException
- if any argument is null
.java.lang.Exception
- If any other error occurs.