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()
ICodeBaseEntrygetNumBytes in interface ICodeBaseEntrypublic java.lang.String getResourceName()
ICodeBaseEntrygetResourceName in interface ICodeBaseEntrypublic java.io.InputStream openResource()
throws java.io.IOException
ICodeBaseEntryopenResource in interface ICodeBaseEntryjava.io.IOException - if an error occurs reading from the resourcepublic ICodeBase getCodeBase()
ICodeBaseEntrygetCodeBase in interface ICodeBaseEntrypublic ClassDescriptor getClassDescriptor() throws ResourceNotFoundException, InvalidClassFileFormatException
ICodeBaseEntrygetClassDescriptor in interface ICodeBaseEntryResourceNotFoundExceptionInvalidClassFileFormatExceptionpublic void overrideResourceName(java.lang.String resourceName)
ICodeBaseEntryoverrideResourceName in interface ICodeBaseEntryresourceName - the new resource namepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.