org.codehaus.janino.util.resource
Class MapResourceFinder
java.lang.Object
org.codehaus.janino.util.resource.ResourceFinder
org.codehaus.janino.util.resource.MapResourceFinder
public class MapResourceFinder
- extends ResourceFinder
A ResourceFinder that provides access
to resource stored as byte arrays in a Map.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapResourceFinder
public MapResourceFinder(Map<String,byte[]> map)
setLastModified
public final void setLastModified(long lastModified)
- Parameters:
lastModified - The return value of Resource.lastModified() for the next resources found
findResource
public final Resource findResource(String resourceName)
- Description copied from class:
ResourceFinder
- Find a resource by name and return it as a
Resource object.
- Specified by:
findResource in class ResourceFinder
- Parameters:
resourceName - Designates the resource; typically structured by slashes ("/") like
"com/foo/pkg/Bar.class"
- Returns:
null if the resource could not be found