?????
org.apache.commons.io.function.IOFunction
??IOFunction????
???
??
This package defines IO-only related functional interfaces for lambda expressions and method references.
This package provides implementations of output classes, such as
OutputStream
and Writer
.-
org.apache.commons.io.function?IOFunction???
??????????default <V> IOFunction<T,
V> Returns a composedIOFunction
that first applies this function to its input, and then applies theafter
function to the result.default <V> IOFunction<T,
V> IOFunction.andThen
(IOFunction<? super R, ? extends V> after) Returns a composedIOFunction
that first applies this function to its input, and then applies theafter
function to the result.default <V> IOFunction<V,
R> Returns a composedIOFunction
that first applies thebefore
function to its input, and then applies this function to the result.default <V> IOFunction<V,
R> IOFunction.compose
(IOFunction<? super V, ? extends T> before) Returns a composedIOFunction
that first applies thebefore
function to its input, and then applies this function to the result.static <T> IOFunction<T,
T> IOFunction.identity()
Returns aIOFunction
that always returns its input argument.?????IOFunction?org.apache.commons.io.function??????????????default <V> IOFunction<T,
V> IOFunction.andThen
(IOFunction<? super R, ? extends V> after) Returns a composedIOFunction
that first applies this function to its input, and then applies theafter
function to the result.default <V> IOFunction<V,
R> IOFunction.compose
(IOFunction<? super V, ? extends T> before) Returns a composedIOFunction
that first applies thebefore
function to its input, and then applies this function to the result. -
org.apache.commons.io.output?IOFunction???
?????IOFunction?org.apache.commons.io.output?????????????ThresholdingOutputStream
(int threshold, IOConsumer<ThresholdingOutputStream> thresholdConsumer, IOFunction<ThresholdingOutputStream, OutputStream> outputStreamGetter) Constructs an instance of this class which will trigger an event at the specified threshold.