Package org.apache.maven.index.reader
Interface ResourceHandler.Resource
- All Superinterfaces:
- AutoCloseable,- Closeable
- All Known Subinterfaces:
- WritableResourceHandler.WritableResource
- All Known Implementing Classes:
- BufferedResource,- BufferedWritableResource,- PathWritableResource,- UrlResource
- Enclosing interface:
- ResourceHandler
Handle of content.
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidclose()Default close method is no-op, override if implementation requires.read()Returns theInputStreamstream of the resource, if exists,nullotherwise.
- 
Method Details- 
readReturns theInputStreamstream of the resource, if exists,nullotherwise. The stream should be closed by caller, otherwise resource leaks might be introduced.- Throws:
- IOException
 
- 
closeDefault close method is no-op, override if implementation requires.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
 
-