Class FileSystemResourceManager
java.lang.Object
org.codehaus.groovy.tools.groovydoc.FileSystemResourceManager
- All Implemented Interfaces:
ResourceManager
Loads documentation resources from the local file system.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a resource manager rooted at the current working directory.FileSystemResourceManager(String basedir) Creates a resource manager rooted at the supplied base directory. -
Method Summary
-
Constructor Details
-
FileSystemResourceManager
public FileSystemResourceManager()Creates a resource manager rooted at the current working directory. -
FileSystemResourceManager
Creates a resource manager rooted at the supplied base directory.- Parameters:
basedir- the base directory used to resolve resources
-
-
Method Details
-
getReader
Returns a reader for the named resource.- Specified by:
getReaderin interfaceResourceManager- Parameters:
resourceName- the resource to open- Returns:
- a reader for the resource
- Throws:
IOException- if the resource cannot be opened
-