Class BufferedResourceHandler
java.lang.Object
org.apache.maven.index.reader.resource.BufferedResourceHandler
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ResourceHandler
Wraps
ResourceHandler
s so that they return ResourceHandler.Resource
s that return BufferedInputStream
s.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.index.reader.ResourceHandler
ResourceHandler.Resource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Default close method is no-op, override if implementation requires.
-
Constructor Details
-
BufferedResourceHandler
-
-
Method Details
-
locate
Description copied from interface:ResourceHandler
- Specified by:
locate
in interfaceResourceHandler
- 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
-