|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.janino.util.resource.ResourceFinder
org.codehaus.janino.util.resource.MapResourceFinder
public class 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 | |
---|---|
MapResourceFinder(java.util.Map map)
|
Method Summary | |
---|---|
Resource |
findResource(java.lang.String resourceName)
Find a resource by name and return it as a Resource object. |
void |
setLastModified(long lastModified)
|
Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder |
---|
findResourceAsStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapResourceFinder(java.util.Map map)
Method Detail |
---|
public final void setLastModified(long lastModified)
public final Resource findResource(java.lang.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 found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |