public class BinaryResourceIdentifier
extends java.lang.Object
ResourceTableChunk are identified by an integer of the form 0xpptteeee,
where pp is the PackageChunk id, tt is the TypeChunk id, and eeee is the index of
the entry in the TypeChunk.| Modifier and Type | Method and Description |
|---|---|
static BinaryResourceIdentifier |
create(int resourceId)
Returns a
BinaryResourceIdentifier from a resourceId of the form 0xpptteeee. |
static BinaryResourceIdentifier |
create(int packageId,
int typeId,
int entryId)
Returns a
BinaryResourceIdentifier with the given identifiers. |
int |
entryId()
The (0-based) index of the entry in a
TypeChunk containing this resource. |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
int |
packageId()
The (1-based) id of the
PackageChunk containing this resource. |
java.lang.String |
toString() |
int |
typeId()
The (1-based) id of the
TypeChunk containing this resource. |
public static BinaryResourceIdentifier create(int resourceId)
BinaryResourceIdentifier from a resourceId of the form 0xpptteeee.public static BinaryResourceIdentifier create(int packageId, int typeId, int entryId)
BinaryResourceIdentifier with the given identifiers.public int packageId()
PackageChunk containing this resource.public int typeId()
TypeChunk containing this resource.public int entryId()
TypeChunk containing this resource.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object