Top Description Fields Constructors Methods
org.codehaus.commons.compiler.util.resource

public Class ZipFileResourceFinder

extends ResourceFinder
Class Inheritance
Imports
java.io.IOException, .InputStream, java.net.URL, java.util.zip.ZipEntry, .ZipFile, org.codehaus.commons.nullanalysis.Nullable

A org.codehaus.commons.compiler.util.resource.ResourceFinder that finds resources in a ZIP file.

Field Summary

Modifier and TypeField and Description
private final ZipFile
Inherited from org.codehaus.commons.compiler.util.resource.ResourceFinder:
EMPTY_RESOURCE_FINDER

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final Resource
findResource(final String
Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"
resourceName
)

Implements abstract org.codehaus.commons.compiler.util.resource.ResourceFinder.findResource.

Finds a resource by name and return it as a Resource object.
public final String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.codehaus.commons.compiler.util.resource.ResourceFinder:
findResourceAsStream

Field Detail

zipFileback to summary
private final ZipFile zipFile

Constructor Detail

ZipFileResourceFinderback to summary
public ZipFileResourceFinder(ZipFile zipFile)

Method Detail

findResourceback to summary
public final Resource findResource(final String resourceName)

Implements abstract org.codehaus.commons.compiler.util.resource.ResourceFinder.findResource.

Doc from org.codehaus.commons.compiler.util.resource.ResourceFinder.findResource.

Finds a resource by name and return it as a Resource object.

Parameters
resourceName:String

Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"

Returns:Resource

null if the resource could not be found

Annotations
@Override
@Nullable
toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override