saker.util Documentation TaskDoc JavaDoc Packages
public interface IOSupplier<T>
Represents a supplier of results which may throw an IOException.

This functional interface is similar to Supplier, but with the addition of declaring a checked IOException on the function.

TThe result type of the supplier.
Methods
public T
get()
Gets a result.
public static <T> IOSupplier<T>
valueOf(Supplier<T> supplier)
Converts the argument supplier to an IOSupplier.
public abstract T get() throws IOException
Gets a result.
A result.
IOExceptionIn case of I/O error.
public static <T> IOSupplier<T> valueOf(Supplier<T> supplier)
Converts the argument supplier to an IOSupplier.
TThe generated type.
supplierThe supplier.
The converted IOSupplier.