Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
a2800276
committed
Nov 26, 2009
1 parent
4b7c4c0
commit 557478f
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package de.kuriositaet.iso7816; | ||
|
||
import de.kuriositaet.iso7816.apdu.SELECT; | ||
import de.kuriositaet.pcsc.Card; | ||
|
||
public class Main { | ||
public static void main (String [] args) { | ||
|
||
int i = 0; | ||
byte b = (byte)0xff; | ||
i = b; | ||
char c = 0xff; | ||
System.out.println(b); | ||
System.out.println(c); | ||
b = (byte)c; | ||
System.out.println(b); | ||
System.out.println(b < 0 ? b+256 : b); | ||
int j = 200; | ||
System.out.println((byte)i); | ||
} | ||
|
||
public void demo () { | ||
|
||
// Session ses = new Session(); | ||
// ses.add(SELECT); | ||
// ses.add(GET_PO, new POST<GET_PO>(GET_PO getpo) { | ||
// byte [] rec_ids = getpo.getRecordIds(); | ||
// getpo.getSession().insertAfter(getpo, new READ_RECORD(rec_ids); | ||
// }); | ||
|
||
Card c = new Card(); | ||
SELECT sel = new SELECT(); | ||
byte[] result = c.transmit(sel.getBytes()); | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters