Package opencard.opt.iso.fs
Class CardFileAppID
- java.lang.Object
-
- opencard.opt.iso.fs.CardFilePathComponent
-
- opencard.opt.iso.fs.CardFileAppID
-
- All Implemented Interfaces:
OpenCardConstants
- Direct Known Subclasses:
CardFilePartialAppID
public class CardFileAppID extends CardFilePathComponent implements OpenCardConstants
CardFileAppID contains a single CardFilePath component, an application ID.- Author:
- Dirk Husemann (hud@zurich.ibm.com)
-
-
Field Summary
-
Fields inherited from class opencard.opt.iso.fs.CardFilePathComponent
comp
-
Fields inherited from interface opencard.core.OpenCardConstants
APPID_ENCODING, CARD_SERVICE_CACHEPATH, CARD_SERVICE_CACHETIME, CARD_SERVICE_CHECK, CARD_SERVICE_LISTER_CLASS, CARD_SERVICE_REGISTRY_TAG, CARD_SERVICE_URL, CARD_TERMINAL_REGISTRY_TAG, DEFAULT_OPENCARD_LOADER_CLASSNAME, OPENCARD_DOTPROPERTIES, OPENCARD_PROPERTIES, OPENCARD_PROPERTY, SMARTCARD_REMOVED
-
-
Constructor Summary
Constructors Constructor Description CardFileAppID(java.lang.String comp)
Instantiate an application ID path component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object comp)
Compare two application ID components.int
hashCode()
Return a hashcode for this application IDbyte[]
toByteArray()
Return a byte array representing this application ID.-
Methods inherited from class opencard.opt.iso.fs.CardFilePathComponent
createComponent, toString
-
-
-
-
Method Detail
-
toByteArray
public byte[] toByteArray()
Return a byte array representing this application ID.- Returns:
- A byte array containing the application ID.
- Throws:
CardIOException
- Thrown when we cannot extract the bytes from the component using the ISO 8859-1 encoding.
-
equals
public boolean equals(java.lang.Object comp)
Compare two application ID components.- Overrides:
equals
in classCardFilePathComponent
- Parameters:
comp
- An object of type CardFileAppID.- Returns:
- True if comp is of type CardFileAppID and describes the same path component.
-
hashCode
public int hashCode()
Return a hashcode for this application ID- Overrides:
hashCode
in classjava.lang.Object
-
-