-
- All Known Subinterfaces:
ByteSource
- All Known Implementing Classes:
BasicByteSource
,ConcatenatedByteSource
,GlobbingByteSource
public interface InputStreamSupplier
An abstract factory for input streams.InputStreamSupplier
objects represent entities such as files and sockets, which can be read as a stream of bytes. Various factory methods forInputStreamSupplier
objects may be found onInputStreamSuppliers
.- See Also:
InputStreamSuppliers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
open()
Opens an input stream for reading.
-
-
-
Method Detail
-
open
InputStream open() throws IOException
Opens an input stream for reading. The caller is responsible for closing the returnedInputStream
.- Returns:
- a reader of the bytes from this supplier
- Throws:
IOException
- if an I/O error occurs while opening stream
-
-