|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface to be implemented by LANDP MSRE services.
| Method Summary | |
void |
addReadListener(ReadListener newListener)
|
void |
addTimeoutListener(TimeoutListener newListener)
|
void |
addWriteListener(WriteListener newListener)
|
int |
cancel()
Cancels a previous read or write operation. |
int |
close()
Closes the device. |
int |
getAllTrackParams(MsreTrackParams[] tp)
Gets the track parameters for all three tracks |
int |
getCapabilities(MsreCapabilities cap)
Gets the device capabilities. |
int |
getCounters(MsreErrorCounters ec)
Gets the error counters |
DeviceStatus |
getStatus()
Gets the device status: OPEN,CLOSED,READING or WRITING. |
int |
getTrackParams(int trackNum,
MsreTrackParams tp)
Gets track parameters. |
int |
getTrackSelFlags(MsreTrackSelFlags tf)
Gets the track selection flags. |
int |
open()
Opens the device with its default server name. |
int |
open(java.lang.String name)
Opens the device. |
int |
read()
Prepares (arms) the device for reading. |
int |
read(int timeout)
Prepares (arms) the device for reading. |
void |
removeReadListener(ReadListener newListener)
|
void |
removeTimeoutListener(TimeoutListener newListener)
|
void |
removeWriteListener(WriteListener newListener)
|
int |
setAllTrackParams(MsreTrackParams[] tps)
Sets the track parameters for all three tracks. |
int |
setTrackParams(int trackNum,
MsreTrackParams tp)
Sets track parameters. |
int |
setTrackSelFlags(MsreTrackSelFlags tf)
Sets the track selection flags. |
int |
write(java.lang.String data)
Prepares the device for writing. |
int |
write(java.lang.String data,
int timeout)
Prepares the device for writing. |
| Method Detail |
public void addReadListener(ReadListener newListener)
newListener - ReadListenerpublic void addTimeoutListener(TimeoutListener newListener)
newListener - TimeoutListenerpublic void addWriteListener(WriteListener newListener)
newListener - WriteListener
public int cancel()
throws LandpException
public int close()
throws LandpException
public int getAllTrackParams(MsreTrackParams[] tp)
throws LandpException
tp - array of track parameters
public int getCapabilities(MsreCapabilities cap)
throws LandpException
cap - destination capabilities object
public int getCounters(MsreErrorCounters ec)
throws LandpException
ec - destination error counter objectpublic DeviceStatus getStatus()
public int getTrackParams(int trackNum,
MsreTrackParams tp)
throws LandpException
trackNum - number of track, 1 to 3.tp - destination track parameters
public int getTrackSelFlags(MsreTrackSelFlags tf)
throws LandpException
tf - destination flags
public int open()
throws LandpException
public int open(java.lang.String name)
throws LandpException
name - the LANDP MSRE server name.
public int read()
throws LandpException
public int read(int timeout)
throws LandpException
timeout - Time out in seconds.public void removeReadListener(ReadListener newListener)
newListener - ReadListenerpublic void removeTimeoutListener(TimeoutListener newListener)
newListener - TimeoutListenerpublic void removeWriteListener(WriteListener newListener)
newListener - WriteListener
public int setAllTrackParams(MsreTrackParams[] tps)
throws LandpException
tp - array of track parameters
public int setTrackParams(int trackNum,
MsreTrackParams tp)
throws LandpException
trackNum - number of track, 1 to 3.tp - track parameters
public int setTrackSelFlags(MsreTrackSelFlags tf)
throws LandpException
th - MsreTrackSelFlags the track selection flags to set
public int write(java.lang.String data)
throws LandpException
data - String the data to write to the magnetic stripe.
public int write(java.lang.String data,
int timeout)
throws LandpException
timeout - Time out in seconds.data - String the data to write to the stripe.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||