Class NestedZipFileCodeBaseLocator
java.lang.Object
edu.umd.cs.findbugs.classfile.impl.NestedZipFileCodeBaseLocator
- All Implemented Interfaces:
ICodeBaseLocator
Codebase locator for a zip/jar archive nested inside a parent codebase.
- Author:
- David Hovemeyer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRelativeCodeBaseLocator(String relativePath) Get the codebase locator describing the location of a relative codebase.booleaninthashCode()Get the codebase object.toString()Convert the codebase locator to a string representation.
-
Constructor Details
-
NestedZipFileCodeBaseLocator
-
-
Method Details
-
getParentCodeBase
- Returns:
- Returns the parentCodeBase.
-
getResourceName
- Returns:
- Returns the resourceName.
-
createRelativeCodeBaseLocator
Description copied from interface:ICodeBaseLocatorGet 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:
createRelativeCodeBaseLocatorin interfaceICodeBaseLocator- Parameters:
relativePath- the path of a relative codebase- Returns:
- codebase locator of the relative codebase whose path is given
-
openCodeBase
Description copied from interface:ICodeBaseLocatorGet the codebase object.- Specified by:
openCodeBasein interfaceICodeBaseLocator- Returns:
- the codebase object
- Throws:
ResourceNotFoundExceptionIOException
-
toString
Description copied from interface:ICodeBaseLocatorConvert 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:
toStringin interfaceICodeBaseLocator- Overrides:
toStringin classObject- Returns:
- a string representation of the codebase
-
equals
-
hashCode
public int hashCode()
-