OpenCard  
 
OCF, the OpenCard Framework is a standard Java framework for working with Smart Cards.  
 

demos.samples
Class InsertRemoveCard

java.lang.Object
  |
  +--demos.samples.InsertRemoveCard

public class InsertRemoveCard
extends java.lang.Object
implements CTListener

A sample demonstrating the notification mechanism when a card is being inserted or removed.

Version:
$Id: InsertRemoveCard.java,v 1.1 1999/12/03 09:34:41 damke Exp $

Constructor Summary
InsertRemoveCard()
           
 
Method Summary
 void cardInserted(CardTerminalEvent ctEvent)
          Gets invoked if a card is inserted.
 void cardRemoved(CardTerminalEvent ctEvent)
          Gets invoked if a card is removed.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertRemoveCard

public InsertRemoveCard()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.InterruptedException

cardInserted

public void cardInserted(CardTerminalEvent ctEvent)
Gets invoked if a card is inserted.
Specified by:
cardInserted in interface CTListener

cardRemoved

public void cardRemoved(CardTerminalEvent ctEvent)
Gets invoked if a card is removed.
Specified by:
cardRemoved in interface CTListener