Class BufferedWritableResourceHandler
java.lang.Object
org.apache.maven.index.reader.resource.BufferedWritableResourceHandler
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ResourceHandler
,WritableResourceHandler
Wraps
WritableResourceHandler
s so that they return WritableResourceHandler.WritableResource
s that return
BufferedInputStream
s and BufferedOutputStream
s.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.index.reader.ResourceHandler
ResourceHandler.Resource
Nested classes/interfaces inherited from interface org.apache.maven.index.reader.WritableResourceHandler
WritableResourceHandler.WritableResource
-
Constructor Summary
ConstructorDescriptionBufferedWritableResourceHandler
(WritableResourceHandler writableResourceHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Default close method is no-op, override if implementation requires.Returns theWritableResourceHandler.WritableResource
withname
.
-
Constructor Details
-
BufferedWritableResourceHandler
-
-
Method Details
-
locate
Description copied from interface:WritableResourceHandler
Returns theWritableResourceHandler.WritableResource
withname
. Returned locator should be handled as resource.- Specified by:
locate
in interfaceResourceHandler
- Specified by:
locate
in interfaceWritableResourceHandler
- Parameters:
name
- Resource name, guaranteed to be non-null
and is FS and URL safe string.- Throws:
IOException
-
close
Description copied from interface:ResourceHandler
Default close method is no-op, override if implementation requires.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceResourceHandler
- Throws:
IOException
-