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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread()Returns theInputStreamstream of the resource, if exists,nullotherwise.
-
Constructor Details
-
UrlResource
-
-
Method Details
-
read
Description copied from interface:ResourceHandler.ResourceReturns theInputStreamstream of the resource, if exists,nullotherwise. The stream should be closed by caller, otherwise resource leaks might be introduced.- Specified by:
readin interfaceResourceHandler.Resource- Throws:
IOException
-