ds.ov2.gui
Class Printable_aid

java.lang.Object
  extended by ds.ov2.gui.Printable_aid

public class Printable_aid
extends Object

Equip cardservices.AID with a toString method for the applet list dialog. If the applet ID consists only of printable characters, as it is the case for all applets in this repository, the result of toString() is just the readable applet name. If there is one non-printable charakter, toString() will return the applet ID as byte array in hex.

The result of this toString method is only computed once in the constructor.

CPP Preprocessing
no cpp preprocessing needed
Execution Environment:
host
Author:
Hendrik Tews
Version:
$Revision: 1.2 $
Last Commit:
$Date: 2009-05-11 21:44:30 $ by $Author: tews $

Field Summary
 cardservices.AID aid
          The applet identifier this instance wraps.
 Charset char_set_us_ascii
          US-ASCII character set for converting strings into byte arrays.
 String printable_name
          The string to be returned by toString().
 
Constructor Summary
Printable_aid(cardservices.AID aid)
          Constructor.
 
Method Summary
 String toString()
          Return a more readable representation of the applet ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

char_set_us_ascii

public final Charset char_set_us_ascii
US-ASCII character set for converting strings into byte arrays.


aid

public final cardservices.AID aid
The applet identifier this instance wraps.


printable_name

public final String printable_name
The string to be returned by toString().

Constructor Detail

Printable_aid

public Printable_aid(cardservices.AID aid)
Constructor. Computes the prinable representation in printable_name.

Parameters:
aid - the applet ID to wrap
Method Detail

toString

public String toString()
Return a more readable representation of the applet ID.

Overrides:
toString in class Object