Class MapResourceFinder
- java.lang.Object
-
- org.codehaus.janino.util.resource.ResourceFinder
-
- org.codehaus.janino.util.resource.MapResourceFinder
-
public class MapResourceFinder extends ResourceFinder
AResourceFinderthat provides access to resource stored as byte arrays in aMap.
-
-
Field Summary
-
Fields inherited from class org.codehaus.janino.util.resource.ResourceFinder
EMPTY_RESOURCE_FINDER
-
-
Constructor Summary
Constructors Constructor Description MapResourceFinder(java.util.Map map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcefindResource(java.lang.String resourceName)Find a resource by name and return it as aResourceobject.voidsetLastModified(long lastModified)-
Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder
findResourceAsStream
-
-
-
-
Method Detail
-
setLastModified
public final void setLastModified(long lastModified)
-
findResource
public final Resource findResource(java.lang.String resourceName)
Description copied from class:ResourceFinderFind a resource by name and return it as aResourceobject.- Specified by:
findResourcein classResourceFinder- Parameters:
resourceName- Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"- Returns:
nullif the resource could not be found
-
-