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