Interface InputStreamSupplier

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

    Modifier and Type
    Method
    Description
    Opens an input stream for reading.
  • Method Details

    • open

      InputStream open() throws IOException
      Opens an input stream for reading. The caller is responsible for closing the returned InputStream.
      Returns:
      a reader of the bytes from this supplier
      Throws:
      IOException - if an I/O error occurs while opening stream