public class MapResourceFinder extends ResourceFinder
ResourceFinder that provides access
to resource stored as byte arrays in a Map.EMPTY_RESOURCE_FINDER| Constructor | Description |
|---|---|
MapResourceFinder(Map<String,byte[]> map) |
| Modifier and Type | Method | Description |
|---|---|---|
Resource |
findResource(String resourceName) |
Find a resource by name and return it as a
Resource object. |
void |
setLastModified(long lastModified) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindResourceAsStreampublic final void setLastModified(long lastModified)
lastModified - The return value of Resource.lastModified() for the next resources foundpublic final Resource findResource(String resourceName)
ResourceFinderResource object.findResource in class ResourceFinderresourceName - Designates the resource; typically structured by slashes ("/") like
"com/foo/pkg/Bar.class"null if the resource could not be foundCopyright © 2001–2019. All rights reserved.