Class UrlResource
java.lang.Object
org.apache.maven.index.reader.resource.UrlResource
- All Implemented Interfaces:
ResourceHandler.Resource
A
ResourceHandler.Resource
that represents a URL
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread()
Returns theInputStream
stream of the resource, if exists,null
otherwise.
-
Constructor Details
-
UrlResource
-
-
Method Details
-
read
Description copied from interface:ResourceHandler.Resource
Returns theInputStream
stream of the resource, if exists,null
otherwise. The stream should be closed by caller, otherwise resource leaks might be introduced.- Specified by:
read
in interfaceResourceHandler.Resource
- Throws:
IOException
-