Package | Description |
---|---|
org.apache.commons.io |
Provides classes for working with streams, readers, writers and files.
|
org.apache.commons.io.function |
Provides IO-only related functional interfaces for lambda expressions and method references.
|
org.apache.commons.io.output |
Provides implementations of output classes, such as
OutputStream and
Writer . |
Modifier and Type | Method and Description |
---|---|
static void |
IOExceptionList.checkEmpty(java.util.List<? extends java.lang.Throwable> causeList,
java.lang.Object message)
Throws this exception if the list is not null or empty.
|
static void |
IOUtils.close(java.io.Closeable... closeables)
Closes the given
Closeable s as null-safe operations. |
Modifier and Type | Method and Description |
---|---|
default void |
IOStream.forAll(IOConsumer<T> action)
Performs an action for each element gathering any exceptions.
|
default void |
IOStream.forAll(IOConsumer<T> action,
java.util.function.BiFunction<java.lang.Integer,java.io.IOException,java.io.IOException> exSupplier)
Performs an action for each element gathering any exceptions.
|
static <T> void |
IOConsumer.forAll(IOConsumer<T> action,
java.lang.Iterable<T> iterable)
Performs an action for each element of the collection gathering any exceptions.
|
static <T> void |
IOConsumer.forAll(IOConsumer<T> action,
java.util.stream.Stream<T> stream)
Performs an action for each element of the collection gathering any exceptions.
|
static <T> void |
IOConsumer.forAll(IOConsumer<T> action,
T... array)
Performs an action for each element of the array gathering any exceptions.
|
(package private) static <T> void |
IOStreams.forAll(java.util.stream.Stream<T> stream,
IOConsumer<T> action) |
(package private) static <T> void |
IOStreams.forAll(java.util.stream.Stream<T> stream,
IOConsumer<T> action,
java.util.function.BiFunction<java.lang.Integer,java.io.IOException,java.io.IOException> exSupplier) |
Modifier and Type | Method and Description |
---|---|
private FilterCollectionWriter |
FilterCollectionWriter.forAllWriters(IOConsumer<java.io.Writer> action) |