Class ZipFileResourceFinder
- java.lang.Object
-
- org.codehaus.commons.compiler.util.resource.ResourceFinder
-
- org.codehaus.commons.compiler.util.resource.ZipFileResourceFinder
-
public class ZipFileResourceFinder extends ResourceFinder
AResourceFinder
that finds resources in a ZIP file.
-
-
Field Summary
-
Fields inherited from class org.codehaus.commons.compiler.util.resource.ResourceFinder
EMPTY_RESOURCE_FINDER
-
-
Constructor Summary
Constructors Constructor Description ZipFileResourceFinder(java.util.zip.ZipFile zipFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource
findResource(java.lang.String resourceName)
Finds a resource by name and return it as aResource
object.java.lang.String
toString()
-
Methods inherited from class org.codehaus.commons.compiler.util.resource.ResourceFinder
findResourceAsStream
-
-
-
-
Method Detail
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
findResource
@Nullable public final Resource findResource(java.lang.String resourceName)
Description copied from class:ResourceFinder
Finds a resource by name and return it as aResource
object.- Specified by:
findResource
in classResourceFinder
- Parameters:
resourceName
- Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class
"- Returns:
null
if the resource could not be found
-
-