public class SingleFileCodeBaseEntry extends java.lang.Object implements ICodeBaseEntry
Constructor and Description |
---|
SingleFileCodeBaseEntry(SingleFileCodeBase codeBase)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
ClassDescriptor |
getClassDescriptor()
Return the ClassDescriptor of the class resource accessed by this
codebase entry.
|
ICodeBase |
getCodeBase()
Get the codebase this codebase entry belongs to.
|
int |
getNumBytes()
Get the number of bytes in the resource.
|
java.lang.String |
getResourceName()
Get the name of the resource.
|
int |
hashCode() |
java.io.InputStream |
openResource()
Open an input stream reading from the resource.
|
void |
overrideResourceName(java.lang.String resourceName)
Override the resource name of this codebase entry.
|
java.lang.String |
toString() |
public SingleFileCodeBaseEntry(SingleFileCodeBase codeBase)
codeBase
- parent codebasepublic int getNumBytes()
ICodeBaseEntry
getNumBytes
in interface ICodeBaseEntry
public java.lang.String getResourceName()
ICodeBaseEntry
getResourceName
in interface ICodeBaseEntry
public java.io.InputStream openResource() throws java.io.IOException
ICodeBaseEntry
openResource
in interface ICodeBaseEntry
java.io.IOException
- if an error occurs reading from the resourcepublic ICodeBase getCodeBase()
ICodeBaseEntry
getCodeBase
in interface ICodeBaseEntry
public ClassDescriptor getClassDescriptor() throws ResourceNotFoundException, InvalidClassFileFormatException
ICodeBaseEntry
getClassDescriptor
in interface ICodeBaseEntry
ResourceNotFoundException
InvalidClassFileFormatException
public void overrideResourceName(java.lang.String resourceName)
ICodeBaseEntry
overrideResourceName
in interface ICodeBaseEntry
resourceName
- the new resource namepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.