|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.janino.util.resource.ResourceFinder
org.codehaus.janino.util.resource.FileResourceFinder
org.codehaus.janino.util.resource.DirectoryResourceFinder
public class 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 | |
---|---|
DirectoryResourceFinder(java.io.File directory)
|
Method Summary | |
---|---|
protected java.io.File |
findResourceAsFile(java.lang.String resourceName)
Converts a given resource resource name into a File . |
java.lang.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 |
---|
public DirectoryResourceFinder(java.io.File directory)
directory
- the directory to use as the search baseMethod Detail |
---|
public final java.lang.String toString()
toString
in class java.lang.Object
protected final java.io.File findResourceAsFile(java.lang.String resourceName)
FileResourceFinder
File
.
findResourceAsFile
in class FileResourceFinder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |