FindBugs™ 1.3.9

edu.umd.cs.findbugs.classfile.impl
Class NestedZipFileCodeBase

java.lang.Object
  extended by edu.umd.cs.findbugs.classfile.impl.AbstractScannableCodeBase
      extended by edu.umd.cs.findbugs.classfile.impl.NestedZipFileCodeBase
All Implemented Interfaces:
ICodeBase, IScannableCodeBase

public class NestedZipFileCodeBase
extends AbstractScannableCodeBase

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.

Author:
David Hovemeyer

Field Summary
 
Fields inherited from interface edu.umd.cs.findbugs.classfile.ICodeBase
IN_JAR_MANIFEST, IN_SYSTEM_CLASSPATH, NESTED, SPECIFIED
 
Constructor Summary
NestedZipFileCodeBase(NestedZipFileCodeBaseLocator codeBaseLocator)
          Constructor.
 
Method Summary
 void close()
          This method should be called when done using the code base.
 java.lang.String getPathName()
          Get the filesystem pathname of this codebase.
 ICodeBaseIterator iterator()
          Get an iterator over the resources in the this code base.
 ICodeBaseEntry lookupResource(java.lang.String resourceName)
          Look up a resource in this code base.
 
Methods inherited from class edu.umd.cs.findbugs.classfile.impl.AbstractScannableCodeBase
addResourceNameTranslation, containsSourceFiles, getCodeBaseLocator, getHowDiscovered, getLastModifiedTime, isApplicationCodeBase, setApplicationCodeBase, setHowDiscovered, setLastModifiedTime, translateResourceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedZipFileCodeBase

public NestedZipFileCodeBase(NestedZipFileCodeBaseLocator codeBaseLocator)
                      throws ResourceNotFoundException,
                             java.io.IOException
Constructor.

Parameters:
codeBaseLocator - the codebase locator for this codebase
Throws:
ResourceNotFoundException
java.io.IOException
Method Detail

iterator

public ICodeBaseIterator iterator()
                           throws java.lang.InterruptedException
Description copied from interface: IScannableCodeBase
Get an iterator over the resources in the this code base.

Returns:
ICodeBaseIterator over the resources in the code base
Throws:
java.lang.InterruptedException

lookupResource

public ICodeBaseEntry lookupResource(java.lang.String resourceName)
Description copied from interface: ICodeBase
Look 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

public java.lang.String getPathName()
Description copied from interface: ICodeBase
Get the filesystem pathname of this codebase.

Returns:
the filesystem pathname of this codebase, or null if this codebase is not accessible via the filesystem

close

public void close()
Description copied from interface: ICodeBase
This method should be called when done using the code base.


FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.