|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citizen.request.android.AndroidMSR
public class AndroidMSR
MSR card module for Android OS.
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 |
---|
public static final java.lang.String track1
public static final java.lang.String track2
public static final java.lang.String track3
public static final java.lang.String rawData
public static final java.lang.String rawDataSize
public static final java.lang.String errorMsg
Method Detail |
---|
public static AndroidMSR getInstance()
public void releaseInstance() throws java.lang.InterruptedException
java.lang.InterruptedException
public void startReader() throws java.lang.InterruptedException
java.lang.InterruptedException
public void stopReader() throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean isMSRStatus() throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedException
java.io.IOException
public int readMSR(int mode) throws java.lang.InterruptedException, java.io.IOException
mode
- - MSR Track 0x31,0x32,0x33,0x34, 0x35
java.lang.InterruptedException
java.io.IOException
public void cancelMSR() throws java.lang.InterruptedException
Cancel the MSR mode.
Only use for exit MSR mode when waiting swipe card.
java.lang.InterruptedException
public void setHandler(android.os.Handler handler)
handler
- public android.os.Handler getHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |