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() |
findResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findResourceAsStream
public DirectoryResourceFinder(File directory)
directory
- the directory to use as the search baseprotected final File findResourceAsFile(String resourceName)
FileResourceFinder
File
.findResourceAsFile
in class FileResourceFinder
Copyright © 2001–2019. All rights reserved.