public final class ATR
extends java.lang.Object
implements java.io.Serializable
Instances of this class are immutable. Where data is passed in or out via byte arrays, defensive cloning is performed.
Modifier and Type | Field and Description |
---|---|
private byte[] |
atr |
private int |
nHistorical |
private static long |
serialVersionUID |
private int |
startHistorical |
Constructor and Description |
---|
ATR(byte[] atr)
Constructs an ATR from a byte array.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares the specified object with this ATR for equality.
|
byte[] |
getBytes()
Returns a copy of the bytes in this ATR.
|
byte[] |
getHistoricalBytes()
Returns a copy of the historical bytes in this ATR.
|
int |
hashCode()
Returns the hash code value for this ATR.
|
private void |
parse() |
private void |
readObject(java.io.ObjectInputStream in) |
java.lang.String |
toString()
Returns a string representation of this ATR.
|
private static final long serialVersionUID
private byte[] atr
private transient int startHistorical
private transient int nHistorical
public ATR(byte[] atr)
atr
- the byte array containing the answer-to-reset bytesjava.lang.NullPointerException
- if atr is null
private void parse()
public byte[] getBytes()
public byte[] getHistoricalBytes()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to be compared for equality with this ATRpublic int hashCode()
hashCode
in class java.lang.Object
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.