Package com.globalmentor.io
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:
InputStream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.io.InputStream
getInputStream(java.net.URI uri)
Deprecated.Returns an input stream for the given URI.
-
-
-
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.
-
-