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 | Description |
|---|---|
DirectoryResourceFinder(File directory) |
| Modifier and Type | Method | Description |
|---|---|---|
protected File |
findResourceAsFile(String resourceName) |
Converts a given resource resource name into a
File. |
String |
toString() |
findResourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindResourceAsStreampublic DirectoryResourceFinder(File directory)
directory - the directory to use as the search baseprotected final File findResourceAsFile(String resourceName)
FileResourceFinderFile.findResourceAsFile in class FileResourceFinderCopyright © 2001–2019. All rights reserved.