com.citizen.request.android
Class AndroidMSR

java.lang.Object
  extended by com.citizen.request.android.AndroidMSR

public class AndroidMSR
extends java.lang.Object

MSR card module for Android OS.

Since:
1.061 CITIZEN »õ·Î¿î ¹öÀü. Task Á¾·á.

Field Summary
static java.lang.String errorMsg
           
static java.lang.String rawData
           
static java.lang.String rawDataSize
           
static java.lang.String track1
           
static java.lang.String track2
           
static java.lang.String track3
           
 
Method Summary
 void cancelMSR()
          TOD Cancel the MSR mode.
 android.os.Handler getHandler()
          Get the Handler instance.
static AndroidMSR getInstance()
          Retrieve the instance of AndroidMSR.
 boolean isMSRStatus()
          TOD Get the printer mode that either MSR mode or Normal mode.
 int readMSR(int mode)
          TOD Reads the MSR data.
 void releaseInstance()
          Release the instance of AndroidMSR.
 void setHandler(android.os.Handler handler)
          Set the Handler instance to use in this class.
 void startReader()
          Deprecated. Starts the task that reads MSR status and data.
 void stopReader()
          Deprecated. Terminate MSRReaderTask.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

track1

public static final java.lang.String track1
See Also:
Constant Field Values

track2

public static final java.lang.String track2
See Also:
Constant Field Values

track3

public static final java.lang.String track3
See Also:
Constant Field Values

rawData

public static final java.lang.String rawData
See Also:
Constant Field Values

rawDataSize

public static final java.lang.String rawDataSize
See Also:
Constant Field Values

errorMsg

public static final java.lang.String errorMsg
See Also:
Constant Field Values
Method Detail

getInstance

public static AndroidMSR getInstance()
Retrieve the instance of AndroidMSR.

Returns:
AndroidMSR

releaseInstance

public void releaseInstance()
                     throws java.lang.InterruptedException
Release the instance of AndroidMSR.

Throws:
java.lang.InterruptedException

startReader

public void startReader()
                 throws java.lang.InterruptedException
Deprecated. Starts the task that reads MSR status and data.

Throws:
java.lang.InterruptedException

stopReader

public void stopReader()
                throws java.lang.InterruptedException
Deprecated. Terminate MSRReaderTask.

Throws:
java.lang.InterruptedException

isMSRStatus

public boolean isMSRStatus()
                    throws java.lang.InterruptedException,
                           java.io.IOException
TOD Get the printer mode that either MSR mode or Normal mode.

Returns:
msrStatus - MSR mode(true), Normal mode(false).
Throws:
java.lang.InterruptedException
java.io.IOException

readMSR

public int readMSR(int mode)
            throws java.lang.InterruptedException,
                   java.io.IOException
TOD Reads the MSR data.

Parameters:
mode - - MSR Track 0x31,0x32,0x33,0x34, 0x35
Returns:
MSR_READ, NORMAL
Throws:
java.lang.InterruptedException
java.io.IOException

cancelMSR

public void cancelMSR()
               throws java.lang.InterruptedException
TOD

Cancel the MSR mode.

Only use for exit MSR mode when waiting swipe card.

Throws:
java.lang.InterruptedException

setHandler

public void setHandler(android.os.Handler handler)
Set the Handler instance to use in this class.

Parameters:
handler -

getHandler

public android.os.Handler getHandler()
Get the Handler instance.

Returns:
handler