public class ZipFileResourceFinder extends ResourceFinder
ResourceFinder
that finds resources in a ZIP file.EMPTY_RESOURCE_FINDER
Constructor and Description |
---|
ZipFileResourceFinder(java.util.zip.ZipFile zipFile) |
Modifier and Type | Method and Description |
---|---|
Resource |
findResource(java.lang.String resourceName)
Find a resource by name and return it as a
Resource object. |
java.lang.String |
toString() |
findResourceAsStream
public ZipFileResourceFinder(java.util.zip.ZipFile zipFile)
public final java.lang.String toString()
toString
in class java.lang.Object
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 foundCopyright © 2001-2012. All Rights Reserved.