AbstractScannableCodeBaseEntry
, DelegatingCodeBaseEntry
, DirectoryCodeBaseEntry
, JrtfsCodeBase.JrtfsCodebaseEntry
, SingleFileCodeBaseEntry
, ZipFileCodeBaseEntry
, ZipInputStreamCodeBaseEntry
public interface ICodeBaseEntry
Modifier and Type | Method | Description |
---|---|---|
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.
|
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 getResourceName()
int getNumBytes()
java.io.InputStream openResource() throws java.io.IOException
java.io.IOException
- if an error occurs reading from the resourceICodeBase getCodeBase()
ClassDescriptor getClassDescriptor() throws ResourceNotFoundException, InvalidClassFileFormatException
ResourceNotFoundException
- InvalidClassFileFormatException
if the codebase entry does not reference a valid classfilejava.lang.IllegalArgumentException
- if the codebase entry's filename is definitely not a
classfileInvalidClassFileFormatException
void overrideResourceName(java.lang.String resourceName)
resourceName
- the new resource nameSpotBugs is licensed under the LGPL.