Class BufferedResource
java.lang.Object
org.apache.maven.index.reader.resource.BufferedResource
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- ResourceHandler.Resource
- Direct Known Subclasses:
- BufferedWritableResource
Wraps 
ResourceHandler.Resources so that they return BufferedInputStreams.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Default close method is no-op, override if implementation requires.read()Returns theInputStreamstream of the resource, if exists,nullotherwise.
- 
Constructor Details- 
BufferedResource
 
- 
- 
Method Details- 
readDescription 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 interface- ResourceHandler.Resource
- Throws:
- IOException
 
- 
closeDescription copied from interface:ResourceHandler.ResourceDefault close method is no-op, override if implementation requires.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein interface- ResourceHandler.Resource
- Throws:
- IOException
 
 
-