Package | Description |
---|---|
org.apache.commons.io.function |
This package defines IO-only related functional interfaces for lambda expressions and method references.
|
org.apache.commons.io.output |
This package provides implementations of output classes, such as
OutputStream and Writer . |
Modifier and Type | Method and Description |
---|---|
default <V> IOFunction<T,V> |
IOFunction.andThen(Function<? super R,? extends V> after)
Returns a composed
IOFunction that first applies this function to
its input, and then applies the after function to the result. |
default <V> IOFunction<T,V> |
IOFunction.andThen(IOFunction<? super R,? extends V> after)
Returns a composed
IOFunction that first applies this function to
its input, and then applies the after function to the result. |
default <V> IOFunction<V,R> |
IOFunction.compose(Function<? super V,? extends T> before)
Returns a composed
IOFunction that first applies the before
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 composed
IOFunction that first applies the before
function to its input, and then applies this function to the result. |
static <T> IOFunction<T,T> |
IOFunction.identity()
Returns a
IOFunction that always returns its input argument. |
Modifier and Type | Method and Description |
---|---|
default <V> IOFunction<T,V> |
IOFunction.andThen(IOFunction<? super R,? extends V> after)
Returns a composed
IOFunction that first applies this function to
its input, and then applies the after function to the result. |
default <V> IOFunction<V,R> |
IOFunction.compose(IOFunction<? super V,? extends T> before)
Returns a composed
IOFunction that first applies the before
function to its input, and then applies this function to the result. |
Constructor and Description |
---|
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.
|
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.