Interface URIInputStreamable

    • Method Detail

      • getInputStream

        java.io.InputStream getInputStream​(java.net.URI uri)
                                    throws java.io.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:
        java.io.IOException - Thrown if an I/O error occurred.