public abstract class FileResourceFinder extends ResourceFinder
ResourceFinder
for finding resources in File
s.
It finds FileResource
s instead of simple
Resource
s.
EMPTY_RESOURCE_FINDER
Constructor and Description |
---|
FileResourceFinder() |
Modifier and Type | Method and Description |
---|---|
Resource |
findResource(String resourceName)
Find a resource by name and return it as a
Resource object. |
protected abstract File |
findResourceAsFile(String resourceName)
Converts a given resource resource name into a
File . |
findResourceAsStream
public final Resource findResource(String resourceName)
ResourceFinder
Resource
object.findResource
in class ResourceFinder
resourceName
- Designates the resource; typically structured by slashes ("/") like
"com/foo/pkg/Bar.class
"null
if the resource could not be foundCopyright © 2001–2016. All rights reserved.