com.linuxnet.jpcsc
Class State

java.lang.Object
  extended bycom.linuxnet.jpcsc.State

public class State
extends java.lang.Object

Instances are used to keep information about the states of connections with readers or cards.


Field Summary
 int dwCurrentState
          Set by Context.GetStatusChange() and Card.Status().
 int dwEventState
          Only set via Context.GetStatusChange().
 int proto
          Only set via Card.Status().
 java.lang.Object pvUserData
          Not used.
 byte[] rgbAtr
          The ATR received by a card.
 java.lang.String szReader
          The name of the reader.
 
Constructor Summary
(package private) State()
          Default constructor.
  State(java.lang.String szReader)
          Constructor.
 
Method Summary
 java.lang.String toString()
          Return a string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

szReader

public java.lang.String szReader
The name of the reader. Has to be set for Context.GetStatusChange() and is returned by Card.Status().


pvUserData

public java.lang.Object pvUserData
Not used.


dwCurrentState

public int dwCurrentState
Set by Context.GetStatusChange() and Card.Status().


dwEventState

public int dwEventState
Only set via Context.GetStatusChange().


rgbAtr

public byte[] rgbAtr
The ATR received by a card. This array is always created by the called native method.


proto

public int proto
Only set via Card.Status().

Constructor Detail

State

public State(java.lang.String szReader)
Constructor. Make sure that szReader is a proper string.


State

State()
Default constructor. Not externally visible. Thus, szReader must never be checked in the JNI layer for Context.GetStatusChange(), but State can still be used for Card.Status().

Method Detail

toString

public java.lang.String toString()
Return a string representation.