Web Site

org.codehaus.janino.util.resource
Class DirectoryResourceFinder

java.lang.Object
  extended byorg.codehaus.janino.util.resource.ResourceFinder
      extended byorg.codehaus.janino.util.resource.FileResourceFinder
          extended byorg.codehaus.janino.util.resource.DirectoryResourceFinder

public class DirectoryResourceFinder
extends FileResourceFinder

A FileResourceFinder that finds file resources in a directory. The name of the file is constructed by concatenating a dirctory name with the resource name such that slashes in the resource name map to file separators.


Nested Class Summary
 
Nested classes inherited from class org.codehaus.janino.util.resource.ResourceFinder
ResourceFinder.FileResource, ResourceFinder.Resource
 
Constructor Summary
DirectoryResourceFinder(File directory)
           
 
Method Summary
protected  File findResourceAsFile(String resourceName)
          Converts a given resource resource name into a File.
 String toString()
           
 
Methods inherited from class org.codehaus.janino.util.resource.FileResourceFinder
findResource
 
Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder
findResourceAsStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectoryResourceFinder

public DirectoryResourceFinder(File directory)
Parameters:
directory - the directory to use as the search base
Method Detail

toString

public String toString()

findResourceAsFile

protected File findResourceAsFile(String resourceName)
Description copied from class: FileResourceFinder
Converts a given resource resource name into a File.

Specified by:
findResourceAsFile in class FileResourceFinder

Web Site