|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopencard.opt.iso.fs.CardFilePathComponent
opencard.opt.iso.fs.CardFileFileID
public class CardFileFileID
CardFileFileID contains a single CardFilePath component, a two byte file ID.
Field Summary | |
---|---|
protected byte[] |
fileID
Cache the two byte file ID for fast access |
Fields inherited from class opencard.opt.iso.fs.CardFilePathComponent |
---|
comp |
Constructor Summary | |
---|---|
CardFileFileID(byte hi,
byte lo)
Instantiate a file ID path component. |
|
CardFileFileID(short fileID)
Instantiate a file ID path component. |
|
CardFileFileID(java.lang.String comp)
Instantiate a file ID path component. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object comp)
Compare two file ID components. |
int |
hashCode()
Return a hashcode for this file ID component |
byte[] |
toByteArray()
Return the byte array representing this component. |
void |
toByteArray(byte[] bites,
int off)
Fill in the byte array that represents this component. |
short |
toShort()
Return the short representation of this component. |
Methods inherited from class opencard.opt.iso.fs.CardFilePathComponent |
---|
createComponent, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected byte[] fileID
Constructor Detail |
---|
public CardFileFileID(java.lang.String comp)
comp
- The String containing the path component.public CardFileFileID(short fileID)
fileID
- A short containing the file ID.public CardFileFileID(byte hi, byte lo)
hi
- The high byte of the fileID (e.g., 0xCA for :CAFE)lo
- The low byte of the fileID (e.g., 0xFE for :CAFE)Method Detail |
---|
public short toShort()
public byte[] toByteArray()
public void toByteArray(byte[] bites, int off)
bites
- The target byte array.off
- The offset into the target byte array.public boolean equals(java.lang.Object comp)
equals
in class CardFilePathComponent
comp
- An object of type CardFileFileID.
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |