public class DelegatingCodeBaseEntry extends Object implements ICodeBaseEntry
| Constructor and Description |
|---|
DelegatingCodeBaseEntry(ICodeBase frontEndCodeBase,
ICodeBaseEntry delegateCodeBaseEntry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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.
|
String |
getResourceName()
Get the name of the resource.
|
int |
hashCode() |
InputStream |
openResource()
Open an input stream reading from the resource.
|
void |
overrideResourceName(String resourceName)
Override the resource name of this codebase entry.
|
String |
toString() |
public DelegatingCodeBaseEntry(ICodeBase frontEndCodeBase, ICodeBaseEntry delegateCodeBaseEntry)
public int getNumBytes()
ICodeBaseEntrygetNumBytes in interface ICodeBaseEntrypublic String getResourceName()
ICodeBaseEntrygetResourceName in interface ICodeBaseEntrypublic InputStream openResource() throws IOException
ICodeBaseEntryopenResource in interface ICodeBaseEntryIOException - 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(String resourceName)
ICodeBaseEntryoverrideResourceName in interface ICodeBaseEntryresourceName - the new resource nameCopyright © 2003–2015. All rights reserved.