Interface CloseableSupplier<T extends Closeable>
- Type Parameters:
T- the type ofCloseableobject supplied
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A supplier that provides instances of
Closeable objects.-
Method Summary
-
Method Details
-
get
Gets an instance of aCloseableobject.- Returns:
- an instance of a
Closeableobject - Throws:
IOException- if an I/O error occurs
-