- 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 for InputStreamSupplier objects may
be found on InputStreamSuppliers.- See Also:
-
Method Summary
-
Method Details
-
open
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
-