Class MapResourceFinder
java.lang.Object
org.codehaus.janino.util.resource.ResourceFinder
org.codehaus.janino.util.resource.MapResourceFinder
A
ResourceFinder
that provides access
to resource stored as byte arrays in a Map
.-
Field Summary
Fields inherited from class org.codehaus.janino.util.resource.ResourceFinder
EMPTY_RESOURCE_FINDER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Resource
findResource
(String resourceName) Find a resource by name and return it as aResource
object.final void
setLastModified
(long lastModified) Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder
findResourceAsStream
-
Constructor Details
-
MapResourceFinder
-
-
Method Details
-
setLastModified
public final void setLastModified(long lastModified) -
findResource
Description copied from class:ResourceFinder
Find a resource by name and return it as aResource
object.- Specified by:
findResource
in classResourceFinder
- Parameters:
resourceName
- Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class
"- Returns:
null
if the resource could not be found
-