Package org.codehaus.groovy.tools.groovydoc

# Class FileSystemResourceManager

java.lang.Object
org.codehaus.groovy.tools.groovydoc.FileSystemResourceManager

All Implemented Interfaces:
  `ResourceManager`

public class FileSystemResourceManager extends Object implements ResourceManager
Loads documentation resources from the local file system.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FileSystemResourceManager()`
  Creates a resource manager rooted at the current working directory.
  `FileSystemResourceManager(String basedir)`
  Creates a resource manager rooted at the supplied base directory.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Reader`
  `getReader(String resourceName)`
  Returns a reader for the named resource.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### FileSystemResourceManager

    public FileSystemResourceManager()
    Creates a resource manager rooted at the current working directory.

  - ### FileSystemResourceManager

    public FileSystemResourceManager(String basedir)
    Creates a resource manager rooted at the supplied base directory.
    Parameters:
      `basedir` - the base directory used to resolve resources

- ## Method Details

  - ### getReader

    public Reader getReader(String resourceName) throws IOException
    Returns a reader for the named resource.
    Specified by:
      `getReader` in interface `ResourceManager`
    Parameters:
      `resourceName` - the resource to open
    Returns:
      a reader for the resource
    Throws:
      `IOException` - if the resource cannot be opened