Class DirectoryResourceFinder
java.lang.Object
org.codehaus.janino.util.resource.ResourceFinder
org.codehaus.janino.util.resource.FileResourceFinder
org.codehaus.janino.util.resource.DirectoryResourceFinder
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.-
Field Summary
Fields inherited from class org.codehaus.janino.util.resource.ResourceFinder
EMPTY_RESOURCE_FINDER
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.janino.util.resource.FileResourceFinder
findResource
Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder
findResourceAsStream
-
Constructor Details
-
DirectoryResourceFinder
- Parameters:
directory
- the directory to use as the search base
-
-
Method Details
-
toString
-
findResourceAsFile
Description copied from class:FileResourceFinder
Converts a given resource resource name into aFile
.- Specified by:
findResourceAsFile
in classFileResourceFinder
-