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()
Creates a
Supplier for this instance that throws UncheckedIOException instead of IOException. |
T |
get()
Gets a result.
|
default T |
getUnchecked()
Gets a result.
|
default java.util.function.Supplier<T> asSupplier()
Supplier for this instance that throws UncheckedIOException instead of IOException.T get() throws java.io.IOException
java.io.IOException - if an I/O error occurs.getUnchecked()Copyright © 2010 - 2025 Adobe. All Rights Reserved