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.
|
Modifier and Type | Method and Description |
---|---|
static void |
IOExceptionList.checkEmpty(List<? extends Throwable> causeList,
Object message)
Throws this exception if the list is not null or empty.
|
static void |
IOUtils.close(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,
BiFunction<Integer,IOException,IOException> exSupplier)
Performs an action for each element gathering any exceptions.
|
static <T> void |
IOConsumer.forAll(IOConsumer<T> action,
Iterable<T> iterable)
Performs an action for each element of the collection gathering any exceptions.
|
static <T> void |
IOConsumer.forAll(IOConsumer<T> action,
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.
|
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.