Interface URIInputStreamable

All Known Subinterfaces:
IOKit<T>, ResourceSelector<R>, URIAccessible, ViewIOKit<M>
All Known Implementing Classes:
AbstractIOKit, AbstractViewIOKit, DefaultURIAccessible, ModelViewIOKit, ResourceModel, TextIOKit, URIAccessibleModel, ZipManager

public interface URIInputStreamable
Deprecated.
Class that knows how to get an input stream for the given URI.
Author:
Garret Wilson
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns an input stream for the given URI.
  • Method Details

    • getInputStream

      InputStream getInputStream(URI uri) throws IOException
      Deprecated.
      Returns an input stream for the given URI.

      The implementation may decide to simply connect to the URI and return an input stream from the connection, if the URI is a URL. The URL may be to a file inside a .zip file, and the implementation may open an input stream directly from the .zip file. Whatever the case, whatever class implements this input stream takes on the responsibility of returning an input stream from the given URL.

      The calling class has the responsibility for closing the input stream.

      Parameters:
      uri - A URI to a resource.
      Returns:
      An input stream to the contents of the resource represented by the given URI.
      Throws:
      IOException - Thrown if an I/O error occurred.