@FunctionalInterface
public interface IOExceptionConsumer<T>
IOException.| Modifier and Type | Method and Description |
|---|---|
void |
accept(T input)
Performs an operation on the given input.
|
static <T> java.util.function.Consumer<T> |
asConsumer(IOExceptionConsumer<T> c)
Wraps a consumer that may throw an IO Exception throwing an
UncheckedIOException. |
void accept(@Nullable
T input)
throws java.io.IOException
input - the inputjava.io.IOExceptionstatic <T> java.util.function.Consumer<T> asConsumer(IOExceptionConsumer<T> c)
UncheckedIOException.c - the consumer