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
AFileResourceFinderthat 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 Constructor Description DirectoryResourceFinder(java.io.File directory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.FilefindResourceAsFile(java.lang.String resourceName)Converts a given resource resource name into aFile.java.lang.StringtoString()-
Methods inherited from class org.codehaus.janino.util.resource.FileResourceFinder
findResource
-
Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder
findResourceAsStream
-
-
-
-
Method Detail
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
findResourceAsFile
protected final java.io.File findResourceAsFile(java.lang.String resourceName)
Description copied from class:FileResourceFinderConverts a given resource resource name into aFile.- Specified by:
findResourceAsFilein classFileResourceFinder
-
-