Web Site

org.codehaus.janino.util.resource
Class ZipFileResourceFinder

java.lang.Object
  extended byorg.codehaus.janino.util.resource.ResourceFinder
      extended byorg.codehaus.janino.util.resource.ZipFileResourceFinder

public class ZipFileResourceFinder
extends ResourceFinder

A ResourceFinder that finds resources in a ZIP file.


Nested Class Summary
 
Nested classes inherited from class org.codehaus.janino.util.resource.ResourceFinder
ResourceFinder.FileResource, ResourceFinder.Resource
 
Constructor Summary
ZipFileResourceFinder(ZipFile zipFile)
           
 
Method Summary
 ResourceFinder.Resource findResource(String resourceName)
          Find a resource by name and return it as a ResourceFinder.Resource object.
 String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

ZipFileResourceFinder

public ZipFileResourceFinder(ZipFile zipFile)
Method Detail

toString

public String toString()

findResource

public ResourceFinder.Resource findResource(String resourceName)
Description copied from class: ResourceFinder
Find a resource by name and return it as a ResourceFinder.Resource object.

Specified by:
findResource in class ResourceFinder
Parameters:
resourceName - Slash-separated name that identifies the resource
Returns:
null if the resource could not be found

Web Site