org.codehaus.janino.util.resource
Class DirectoryResourceFinder
java.lang.Object
org.codehaus.janino.util.resource.ResourceFinder
org.codehaus.janino.util.resource.FileResourceFinder
org.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.
DirectoryResourceFinder
public DirectoryResourceFinder(File directory)
- Parameters:
directory
- the directory to use as the search base
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