|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.jc.ATR
ATR parsing & representation.
| Field Summary | |
static int |
BAD_TCK
ATR status: ATR has a bad TCK checksum value (3). |
static int |
NA
A value of NA marks some T[ABCD]i as not present. |
static int |
OK
ATR status: ATR is formatted ok (0). |
static int |
T_0
T=0 protocol selector (value 0). |
static int |
T_1
T=1 protocol selector (value 1). |
static int |
TA
Selects A byte of a (TAi,TBi,TCi,TDi) quadruple (value 0). |
static int |
TB
Selects B byte of a (TAi,TBi,TCi,TDi) quadruple (value 1). |
static int |
TC
Selects C byte of a (TAi,TBi,TCi,TDi) quadruple (value 2). |
static int |
TD
Selects D byte of a (TAi,TBi,TCi,TDi) quadruple (value 3). |
static int |
TOO_LONG
ATR status: ATR is too long - excess bytes (2). |
static int |
TOO_SHORT
ATR status: ATR is too short - badly formatted ok (1). |
| Constructor Summary | |
ATR(byte[] receivedATR)
Parse given ATR and possibly set TCK. |
|
ATR(byte[] receivedATR,
boolean fixTCK)
Parse given ATR and possibly set TCK. |
|
| Method Summary | |
byte[] |
getBytes()
|
byte[] |
getHistoricalChars()
|
int |
getMaxTXi()
|
int |
getStatus()
Get ATR status. |
int |
getT0()
Second character of ATR. |
int |
getTCK()
Retrieve checksum byte. |
int |
getTS()
First character of ATR. |
int |
getTxi(int abcd,
int i)
T[ABCD]i with i>0 and abcd on of {TA,TB,TC,TD}. |
boolean |
isATS()
Determines whether this is indeed a T=CL Answer to Select (ATS) |
boolean |
onlyT_0()
Return true if only T=0 is indicated (possibly by default). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int OK
public static final int TOO_SHORT
public static final int TOO_LONG
public static final int BAD_TCK
public static final int T_0
public static final int T_1
public static final int TA
public static final int TB
public static final int TC
public static final int TD
public static final int NA
| Constructor Detail |
public ATR(byte[] receivedATR)
receivedATR - the ATR to be parsed
public ATR(byte[] receivedATR,
boolean fixTCK)
receivedATR - the ATR to be parsed. If the first byte is the length
of the array-1 then it is assumed that the ATR is a ATS
under protocol T=CL.fixTCK - fix last byte if ATR with the correct checksum
if ATR addresses any other protocol than T=0| Method Detail |
public int getStatus()
public boolean isATS()
public boolean onlyT_0()
public int getTS()
public int getT0()
public int getTCK()
public byte[] getHistoricalChars()
public int getMaxTXi()
public int getTxi(int abcd,
int i)
public byte[] getBytes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||