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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread()Returns theInputStreamstream of the resource, if exists,nullotherwise.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.index.reader.ResourceHandler.Resource
close
-
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
-