public class MSRInterface
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EVENT_NONE |
static int |
eventID |
static int |
MSR_CARD_EVENT_FOUND_CARD |
static int |
MSR_CARD_EVENT_USER_CANCEL |
static java.lang.Object |
object
Deprecated.
|
static int |
TRACK_COUNT |
Constructor and Description |
---|
MSRInterface() |
Modifier and Type | Method and Description |
---|---|
static void |
callBack(int nEventID)
Call back method, when swipe card, the driver will call back this method.
|
static void |
cancelWait() |
static void |
clear() |
static int |
close()
Close the device
|
static int |
getTrackData(int nTrackIndex,
byte[] byteArry,
int nLength)
Get track data.
|
static int |
getTrackDataLength(int nTrackIndex)
Get length of track data
|
static int |
getTrackError(int nTrackIndex)
Get track error
|
static int |
open()
Open the device
|
static int |
poll(int nTimeout_MS)
Deprecated.
|
static void |
waitForSwipe(int timeout) |
public static int MSR_CARD_EVENT_FOUND_CARD
public static int MSR_CARD_EVENT_USER_CANCEL
public static int TRACK_COUNT
public static final int EVENT_NONE
@Deprecated public static java.lang.Object object
waitForSwipe(int)
public static int eventID
public static int open()
public static int close()
public static int poll(int nTimeout_MS)
nTimeout_MS
- : time out in milliseconds. if nTimeout_MS is less
then zero, the searching process is infinite.public static int getTrackError(int nTrackIndex)
nTrackIndex
- : Track indexpublic static int getTrackDataLength(int nTrackIndex)
nTrackIndex
- : Track indexpublic static int getTrackData(int nTrackIndex, byte[] byteArry, int nLength)
nTrackIndex
- : Track indexbyteArry
- : Track datanLength
- : Length of track datapublic static void callBack(int nEventID)
nEventID
- : event id from the driverpublic static void waitForSwipe(int timeout) throws java.lang.InterruptedException
java.lang.InterruptedException
public static void cancelWait()
public static void clear()