org.codehaus.janino.util.resource

Class 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.
Constructor Summary
DirectoryResourceFinder(File directory)
Method Summary
protected FilefindResourceAsFile(String resourceName)
StringtoString()

Constructor Detail

DirectoryResourceFinder

public DirectoryResourceFinder(File directory)

Parameters: directory the directory to use as the search base

Method Detail

findResourceAsFile

protected File findResourceAsFile(String resourceName)

toString

public String toString()