T - the return type of the operations.@FunctionalInterface public interface IOSupplier<T>
Supplier but throws IOException.
Using an IOSupplier allows you to compose usage of checked and unchecked exceptions as you best see fit.
| Modifier and Type | Method and Description |
|---|---|
default java.util.function.Supplier<T> |
asSupplier()
|
T |
get()
Gets a result.
|
default T |
getUnchecked()
Gets a result.
|
default java.util.function.Supplier<T> asSupplier()
T get() throws IOException
IOException - if an I/O error occurs.getUnchecked()default T getUnchecked() throws UncheckedIOException
UncheckedIOException - if an I/O error occurs.get()