Class UrlResource
java.lang.Object
org.apache.maven.index.reader.resource.UrlResource
- All Implemented Interfaces:
Closeable
,AutoCloseable
,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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.index.reader.ResourceHandler.Resource
close
-
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
-