Package de.xima.fc.common.function
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.
@FunctionalInterface public interface IInputStreamSupplier extends IThrowingSupplier<InputStream>
A supplier for anInputStreamthat can throw.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InputStreamopen()Opens the input stream.default InputStreamtryGet()Gets a result.-
Methods inherited from interface de.xima.fc.interfaces.IThrowingSupplier
get
-
-
-
-
Method Detail
-
open
InputStream open() throws IOException
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
default InputStream tryGet() throws IOException
Description copied from interface:IThrowingSupplierGets a result.- Specified by:
tryGetin interfaceIThrowingSupplier<InputStream>- Specified by:
tryGetin interfaceITypedThrowingSupplier<InputStream,Exception>- Returns:
- The result
- Throws:
IOException
-
-