Class NestedZipFileCodeBase
java.lang.Object
edu.umd.cs.findbugs.classfile.impl.AbstractScannableCodeBase
edu.umd.cs.findbugs.classfile.impl.NestedZipFileCodeBase
- All Implemented Interfaces:
ICodeBase, IScannableCodeBase, AutoCloseable
A scannable code base class for a zip (or Jar) file nested inside some other
codebase. These are handled by extracting the nested zip/jar file to a
temporary file, and delegating to an internal ZipFileCodeBase that reads from
the temporary file.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ICodeBase
ICodeBase.Discovered -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AbstractScannableCodeBaseprivate final ICodeBaseprivate final Stringprivate File -
Constructor Summary
ConstructorsConstructorDescriptionNestedZipFileCodeBase(NestedZipFileCodeBaseLocator codeBaseLocator) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This method should be called when done using the code base.Get the filesystem pathname of this codebase.iterator()Get an iterator over the resources in the this code base.lookupResource(String resourceName) Look up a resource in this code base.
-
Field Details
-
parentCodeBase
-
resourceName
-
tempFile
-
delegateCodeBase
-
-
Constructor Details
-
NestedZipFileCodeBase
public NestedZipFileCodeBase(NestedZipFileCodeBaseLocator codeBaseLocator) throws ResourceNotFoundException, IOException Constructor.- Parameters:
codeBaseLocator- the codebase locator for this codebase- Throws:
ResourceNotFoundExceptionIOException
-
-
Method Details
-
iterator
Description copied from interface:IScannableCodeBaseGet an iterator over the resources in the this code base.- Returns:
- ICodeBaseIterator over the resources in the code base
- Throws:
InterruptedException
-
lookupResource
Description copied from interface:ICodeBaseLook up a resource in this code base.- Parameters:
resourceName- name of the resource to look up- Returns:
- ICodeBaseEntry representing the resource or null if the resource cannot be found in this code base
-
getPathName
-
close
public void close()Description copied from interface:ICodeBaseThis method should be called when done using the code base.
-