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 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