Class NestedZipFileCodeBaseLocator

java.lang.Object
edu.umd.cs.findbugs.classfile.impl.NestedZipFileCodeBaseLocator
All Implemented Interfaces:
ICodeBaseLocator

public class NestedZipFileCodeBaseLocator extends Object implements ICodeBaseLocator
Codebase locator for a zip/jar archive nested inside a parent codebase.
Author:
David Hovemeyer
  • Constructor Details

    • NestedZipFileCodeBaseLocator

      public NestedZipFileCodeBaseLocator(ICodeBase parentCodeBase, String resourceName)
  • Method Details

    • getParentCodeBase

      public ICodeBase getParentCodeBase()
      Returns:
      Returns the parentCodeBase.
    • getResourceName

      public String getResourceName()
      Returns:
      Returns the resourceName.
    • createRelativeCodeBaseLocator

      public ICodeBaseLocator createRelativeCodeBaseLocator(String relativePath)
      Description copied from interface: ICodeBaseLocator
      Get the codebase locator describing the location of a relative codebase. This method is useful for getting the location of a codebase referred to in the Class-Path attribute of a Jar manifest.
      Specified by:
      createRelativeCodeBaseLocator in interface ICodeBaseLocator
      Parameters:
      relativePath - the path of a relative codebase
      Returns:
      codebase locator of the relative codebase whose path is given
    • openCodeBase

      public ICodeBase openCodeBase() throws ResourceNotFoundException, IOException
      Description copied from interface: ICodeBaseLocator
      Get the codebase object.
      Specified by:
      openCodeBase in interface ICodeBaseLocator
      Returns:
      the codebase object
      Throws:
      ResourceNotFoundException
      IOException
    • toString

      public String toString()
      Description copied from interface: ICodeBaseLocator
      Convert the codebase locator to a string representation. If possible two codebase locators that refer to the same codebase should produce the same string representation. So, this string can serve as a key identifying the codebase in a map.
      Specified by:
      toString in interface ICodeBaseLocator
      Overrides:
      toString in class Object
      Returns:
      a string representation of the codebase
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object