?????
org.apache.commons.io.function.IOConsumer
??IOConsumer????
???
??
This package defines utility classes for working with streams, readers,
writers and files.
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?IOConsumer???
?????IOConsumer?org.apache.commons.io??????????????static void
IOUtils.close
(Closeable closeable, IOConsumer<IOException> consumer) Closes the givenCloseable
as a null-safe operation. -
org.apache.commons.io.function?IOConsumer???
??????????static final IOConsumer<?>
IOConsumer.NOOP_IO_CONSUMER
Package private constant; consider private.??????????default IOConsumer<T>
IOConsumer.andThen
(IOConsumer<? super T> after) Returns a composedIoConsumer
that performs, in sequence, this operation followed by theafter
operation.default IOConsumer<T>
Returns a composedIOFunction
that first applies this function to its input, and then applies theafter
consumer to the result.default IOConsumer<T>
IOFunction.andThen
(IOConsumer<? super R> after) Returns a composedIOFunction
that first applies this function to its input, and then applies theafter
consumer to the result.static <T> IOConsumer<T>
IOConsumer.noop()
Returns a constant NOOP consumer.?????IOConsumer?org.apache.commons.io.function??????????????default IOConsumer<T>
IOConsumer.andThen
(IOConsumer<? super T> after) Returns a composedIoConsumer
that performs, in sequence, this operation followed by theafter
operation.default IOConsumer<T>
IOFunction.andThen
(IOConsumer<? super R> after) Returns a composedIOFunction
that first applies this function to its input, and then applies theafter
consumer to the result. -
org.apache.commons.io.output?IOConsumer???
?????IOConsumer?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.