Package org.apache.maven.index.reader
Interface ResourceHandler.Resource
- All Known Subinterfaces:
WritableResourceHandler.WritableResource
- All Known Implementing Classes:
BufferedResource,BufferedWritableResource,PathWritableResource,UrlResource
- Enclosing interface:
- ResourceHandler
public static interface ResourceHandler.Resource
Handle of content.
-
Method Summary
Modifier and TypeMethodDescriptionread()Returns theInputStreamstream of the resource, if exists,nullotherwise.
-
Method Details
-
read
Returns theInputStreamstream of the resource, if exists,nullotherwise. The stream should be closed by caller, otherwise resource leaks might be introduced.- Throws:
IOException
-