Interface IInputStreamSupplier
- All Superinterfaces:
IThrowingSupplier<InputStream>, ITypedThrowingSupplier<InputStream, Exception>, Supplier<InputStream>
- All Known Subinterfaces:
ISerializableInputStreamSupplier
- 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 for an
InputStream that can throw.- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionopen()Opens the input stream.default InputStreamtryGet()Gets a result.Methods inherited from interface IThrowingSupplier
get
-
Method Details
-
open
Opens the input stream. The caller is responsible for closing the stream.- Returns:
- The input stream.
- Throws:
IOException- If an I/O error occurs while obtaining the stream.
-
tryGet
Description copied from interface:IThrowingSupplierGets a result.- Specified by:
tryGetin interfaceIThrowingSupplier<InputStream>- Specified by:
tryGetin interfaceITypedThrowingSupplier<InputStream, Exception>- Returns:
- The result
- Throws:
IOException
-