|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectds.ov2.test.Data_protocol_card
public class Data_protocol_card
Card functionality for the data protocols of Data_protocol.id.
| Constructor Summary | |
|---|---|
Data_protocol_card()
Empty constructor. |
|
| Method Summary | |
|---|---|
private byte |
check_buffer(Resizable_buffer b,
byte count)
Check if the buffer b contains the expected data-check
pattern. |
void |
check(Resizable_buffer a1,
Resizable_buffer a2,
Resizable_buffer a3,
Resizable_buffer a4,
Resizable_buffer a5,
Resizable_buffer b1,
Resizable_buffer b2,
Resizable_buffer b3,
Resizable_buffer b4,
Resizable_buffer b5)
Check and fill all 10 buffers. |
private byte |
fill_buffer(Resizable_buffer b,
byte count)
Fill the buffer with the data-check pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Data_protocol_card()
| Method Detail |
|---|
private byte check_buffer(Resizable_buffer b,
byte count)
b contains the expected data-check
pattern. The host fills the buffer with the consecutive numbers
from 0 to 255, repeated as often as necessary over all
arguments it sends to the card. This method checks if this
pattern arrived here in the applet.
b - buffer to checkcount - start value for the first byte of the buffer
ISOException - with value Response_status.OV_TEST_FAILED_00 | 0x01 in
case the buffer
contains unexpected data.
private byte fill_buffer(Resizable_buffer b,
byte count)
b - buffer to fillcount - start value for the first byte of b
public void check(Resizable_buffer a1,
Resizable_buffer a2,
Resizable_buffer a3,
Resizable_buffer a4,
Resizable_buffer a5,
Resizable_buffer b1,
Resizable_buffer b2,
Resizable_buffer b3,
Resizable_buffer b4,
Resizable_buffer b5)
a1 - argument buffera2 - argument buffera3 - argument buffera4 - argument buffera5 - argument bufferb1 - result buffersb2 - result buffersb3 - result buffersb4 - result buffersb5 - result buffers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||