demos.samples
Class GetSmartCard
java.lang.Object
|
+--demos.samples.GetSmartCard
- public class GetSmartCard
- extends java.lang.Object
- implements CTListener
A sample demonstrating how to obtain a SmartCard object
when using the event-driven paradigm instead of the procedural
SmartCard.waitForCard.
Please Note that this sample actually waits for a card to be
inserted so if there is one inserted already at the start it has
to be removed first and inserted again.
- Version:
- 1.0
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
GetSmartCard
public GetSmartCard()
main
public static void main(java.lang.String[] args)
- Starts the execution of this program.
cardInserted
public void cardInserted(CardTerminalEvent ctEvent)
- Is invoked if a card is inserted.
- Specified by:
- cardInserted in interface CTListener
- Parameters:
ctEvent - the event indicating the terminal and slot
cardRemoved
public void cardRemoved(CardTerminalEvent ctEvent)
- Is invoked if a card is removed.
- Specified by:
- cardRemoved in interface CTListener
- Parameters:
ctEvent - the event indicating the terminal and slot
|