com.ibm.jc
Class JCInfo

java.lang.Object
  extended bycom.ibm.jc.JCInfo

public final class JCInfo
extends java.lang.Object

Retrieve textual representations of card related constants.


Field Summary
static JCInfo INFO
          Default JC system info.
 
Constructor Summary
JCInfo(java.util.Properties p)
          Setup JCInfo with some specific property object.
JCInfo(java.util.Properties p, JCInfo baseInfo)
          Create JCInfo with given properties and fall back info object.
 
Method Summary
static java.lang.String atrToString(ATR atr)
           
static java.lang.String dataToString(byte[] data)
           
static java.lang.String dataToString(byte[] data, int beg, int len)
          Translate some data into a textual representation.
static java.lang.String detailedATR(ATR atr)
           
 java.lang.String findString(java.lang.String k)
           
 java.lang.String findString(java.lang.String t, int v, int n)
          Lookup textual representation of some value.
static java.lang.String hexdump(int addr, byte[] data, int off, int len)
           
static java.lang.String toHex(byte[] data, int beg, int len)
           
static java.lang.String toHex(int i, int n)
           
 java.lang.String toString(java.lang.String tag, byte b)
           
 java.lang.String toString(java.lang.String tag, int i)
           
 java.lang.String toString(java.lang.String t, int v, int n)
          Lookup textual representation of some value.
 java.lang.String toString(java.lang.String tag, short s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFO

public static final JCInfo INFO
Default JC system info.

Constructor Detail

JCInfo

public JCInfo(java.util.Properties p)
Setup JCInfo with some specific property object.


JCInfo

public JCInfo(java.util.Properties p,
              JCInfo baseInfo)
Create JCInfo with given properties and fall back info object.

Method Detail

findString

public java.lang.String findString(java.lang.String k)

findString

public java.lang.String findString(java.lang.String t,
                                   int v,
                                   int n)
Lookup textual representation of some value.

Parameters:
t - the category (e.g. ic.faricator, apdu.status)
v - the value to be translated into some text.
n - the number of valid nibbles in v.
Returns:
the textual representation or null if not found

toString

public java.lang.String toString(java.lang.String t,
                                 int v,
                                 int n)
Lookup textual representation of some value.

Parameters:
t - the category (e.g. ic.faricator, apdu.status)
v - the value to be translated into some text.
n - the number of bytes being valid in v.
Returns:
the textual representation or a string of the form 0xHEX where HEX is the hexadecimal representation of v (n digits).

toString

public java.lang.String toString(java.lang.String tag,
                                 byte b)

toString

public java.lang.String toString(java.lang.String tag,
                                 short s)

toString

public java.lang.String toString(java.lang.String tag,
                                 int i)

toHex

public static java.lang.String toHex(byte[] data,
                                     int beg,
                                     int len)

toHex

public static java.lang.String toHex(int i,
                                     int n)

hexdump

public static java.lang.String hexdump(int addr,
                                       byte[] data,
                                       int off,
                                       int len)

dataToString

public static java.lang.String dataToString(byte[] data,
                                            int beg,
                                            int len)
Translate some data into a textual representation. If the data consists entirely of ISO-8859-1 printable characters then it returned as a string enclosed in double quotes. Otherwise a sequence of hexadecimal digits is returned.


dataToString

public static java.lang.String dataToString(byte[] data)

atrToString

public static java.lang.String atrToString(ATR atr)

detailedATR

public static java.lang.String detailedATR(ATR atr)