public class DirectoryResourceFinder extends FileResourceFinder
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.EMPTY_RESOURCE_FINDER| Constructor and Description |
|---|
DirectoryResourceFinder(java.io.File directory) |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.File |
findResourceAsFile(java.lang.String resourceName)
Converts a given resource resource name into a
File. |
java.lang.String |
toString() |
findResourcefindResourceAsStreampublic DirectoryResourceFinder(java.io.File directory)
directory - the directory to use as the search basepublic final java.lang.String toString()
toString in class java.lang.Objectprotected final java.io.File findResourceAsFile(java.lang.String resourceName)
FileResourceFinderFile.findResourceAsFile in class FileResourceFinder