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(File directory) |
| Modifier and Type | Method and Description |
|---|---|
protected File |
findResourceAsFile(String resourceName)
Converts a given resource resource name into a
File. |
Iterable<Resource> |
list(String resourceNamePrefix,
boolean recurse) |
String |
toString() |
findResourcefindResourceAsStreampublic DirectoryResourceFinder(File directory)
directory - the directory to use as the search base@Nullable protected final File findResourceAsFile(String resourceName)
FileResourceFinderFile.findResourceAsFile in class FileResourceFinderCopyright © 2019. All rights reserved.