|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectds.ov2.util.APDU_long
public class APDU_long
APDU_Serializable wrapper around long. There are no long's
on Java Card, so this is not used for communication with the card.
This class is only used in the bignat testframe for testing the
int/long configuration.
| Field Summary | |
|---|---|
long |
value
The wrapped long value. |
| Constructor Summary | |
|---|---|
APDU_long()
Empty constructor. |
|
APDU_long(long l)
Initialize value to l. |
|
| Method Summary | |
|---|---|
short |
from_byte_array(short len,
short this_index,
byte[] byte_array,
short byte_index)
Deserialize this long. |
boolean |
is_compatible_with(Object o)
Compatibility check for the OV-chip protocol layer. |
short |
size()
Size in bytes necessary to send or receive this object via the OV-chip protocol layer, see APDU_Serializable.size(). |
short |
to_byte_array(short len,
short this_index,
byte[] byte_array,
short byte_index)
Serialization this long. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public long value
| Constructor Detail |
|---|
public APDU_long()
value.
public APDU_long(long l)
value to l.
l - long to wrap| Method Detail |
|---|
public short size()
APDU_Serializable.size().
size in interface APDU_Serializablepublic boolean is_compatible_with(Object o)
APDU_Serializable.is_compatible_with.
This object is only compatible with instances of this class.
is_compatible_with in interface APDU_Serializableo - actual argument or result
o is an APDU_long instance.
public short to_byte_array(short len,
short this_index,
byte[] byte_array,
short byte_index)
APDU_Serializable.to_byte_array.
to_byte_array in interface APDU_Serializablelen - available space in byte_arraythis_index - number of bytes that
have already been written in preceeding callsbyte_array - data array to serialize the state intobyte_index - index in byte_array
len bytes, in this case len + 1 is
returned.
public short from_byte_array(short len,
short this_index,
byte[] byte_array,
short byte_index)
APDU_Serializable.from_byte_array.
from_byte_array in interface APDU_Serializablelen - available data in byte_arraythis_index - number of bytes that
have already been read in preceeding callsbyte_array - data array to deserialize frombyte_index - index in byte_array
len bytes, in this case len + 1 is
returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||