Class ZipFileResourceFinder
- java.lang.Object
-
- org.codehaus.janino.util.resource.ResourceFinder
-
- org.codehaus.janino.util.resource.ZipFileResourceFinder
-
public class ZipFileResourceFinder extends ResourceFinder
AResourceFinderthat finds resources in a ZIP file.
-
-
Field Summary
-
Fields inherited from class org.codehaus.janino.util.resource.ResourceFinder
EMPTY_RESOURCE_FINDER
-
-
Constructor Summary
Constructors Constructor Description ZipFileResourceFinder(ZipFile zipFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcefindResource(String resourceName)Find a resource by name and return it as aResourceobject.StringtoString()-
Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder
findResourceAsStream
-
-
-
-
Constructor Detail
-
ZipFileResourceFinder
public ZipFileResourceFinder(ZipFile zipFile)
-
-
Method Detail
-
findResource
public final Resource findResource(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
-
-