public interface ICodeBaseEntry
| Modifier and Type | Method and 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.
|
String |
getResourceName()
Get the name of the resource.
|
InputStream |
openResource()
Open an input stream reading from the resource.
|
void |
overrideResourceName(String resourceName)
Override the resource name of this codebase entry.
|
String getResourceName()
int getNumBytes()
InputStream openResource() throws IOException
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 classfileIllegalArgumentException - if the codebase entry's filename is definitely not a
classfileResourceNotFoundExceptionInvalidClassFileFormatExceptionvoid overrideResourceName(String resourceName)
resourceName - the new resource nameCopyright © 2003–2015. All rights reserved.