org.dvb.smartcard
Class SmartCardReaderEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.dvb.smartcard.SmartCardReaderEvent
All Implemented Interfaces:
java.io.Serializable

public class SmartCardReaderEvent
extends java.util.EventObject

Represents an event generated by a change in the status of a smart card reader. All available constants are defined within this class.

Since:
MHP 1.1.3
See Also:
Serialized Form

Field Summary
static int SMART_CARD_ERROR
          Smart card is inserted into the reader, there is electrical communication with the smart card but no ATR is retrieved.
static int SMART_CARD_IN
          A smart card is inserted into the reader and an ATR is correctly retrieved.
static int SMART_CARD_MUTED
          Smart card is inserted into the reader but no ATR is retrieved because no electrical communication is established with the smart card.
static int SMART_CARD_OUT
          Nothing is inserted into the reader, meaning the insertion contact is disabled.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SmartCardReaderEvent(java.lang.Object source, int type)
          Constructor for a smart card reader event notifying the slot has identified a change in its status.
 
Method Summary
 int getType()
          Retrieves the type of SmartCardReaderEvent that has been fired.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SMART_CARD_IN

public static int SMART_CARD_IN
A smart card is inserted into the reader and an ATR is correctly retrieved. This means the insertion contact is active and the reader is also able to communicate with the smart card.


SMART_CARD_OUT

public static int SMART_CARD_OUT
Nothing is inserted into the reader, meaning the insertion contact is disabled.


SMART_CARD_MUTED

public static int SMART_CARD_MUTED
Smart card is inserted into the reader but no ATR is retrieved because no electrical communication is established with the smart card.


SMART_CARD_ERROR

public static int SMART_CARD_ERROR
Smart card is inserted into the reader, there is electrical communication with the smart card but no ATR is retrieved.

Constructor Detail

SmartCardReaderEvent

public SmartCardReaderEvent(java.lang.Object source,
                            int type)
Constructor for a smart card reader event notifying the slot has identified a change in its status.

Parameters:
source - Object the SmartCardReader who is generating the event
type - int the event type
Method Detail

getType

public int getType()
Retrieves the type of SmartCardReaderEvent that has been fired. It can be either SMART_CARD_IN, SMART_CARD_OUT, SMART_CARD_MUTED or SMART_CARD_ERROR.

Returns:
int type of event