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

demos.samples
Class RemoveCard

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

public class RemoveCard
extends java.lang.Object
implements CTListener

A sample demonstrating the notification mechanism when a card is being removed. If there is no card inserted when this application is started one has to inserted first before it can be removed again.

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

Constructor Summary
RemoveCard()
           
 
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

RemoveCard

public RemoveCard()
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