org.codehaus.janino.util.resource
Class ZipFileResourceFinder
java.lang.Object
org.codehaus.janino.util.resource.ResourceFinder
org.codehaus.janino.util.resource.ZipFileResourceFinder
public class ZipFileResourceFinder
- extends ResourceFinder
A ResourceFinder that finds resources in a ZIP file.
ZipFileResourceFinder
public ZipFileResourceFinder(ZipFile zipFile)
toString
public final String toString()
- Overrides:
toString in class Object
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