|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by the CheckReader service. Has to be also implemented by user written services accessing a reader device using the Amper Standard protocol.
Field Summary | |
static java.lang.String |
BAD_CHARACTER_EVENT
|
static java.lang.String |
CANCEL_EVENT
|
static java.lang.String |
COMPLETED_EVENT
|
static java.lang.String |
MALFUNCTION_EVENT
|
static java.lang.String |
TIMEOUT_EVENT
|
static java.lang.String |
UNKNOWN_EVENT
|
Method Summary | |
void |
cancel()
Cancels the read function. |
void |
close()
Closes the serial communications port. |
java.lang.String |
getDataRead()
Gets the data read from the reader. |
void |
open()
Opens and initializes the serial communications port. |
void |
read()
Reads the data from the device using the asyncronous mode. |
void |
readAndUnformat(Context aContext,
FormatElement aFormat)
Reads the data from the device using the asyncronous mode and unformats it. |
java.lang.String |
readAndWait()
Reads the data from the device using the syncronous mode. |
void |
readAndWaitAndUnformat(Context aContext,
FormatElement aFormat)
Reads the data from the device using the syncronous mode and unformats it. |
Methods inherited from interface com.ibm.dse.base.Notifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent,
terminate |
Field Detail |
public static final java.lang.String COMPLETED_EVENT
public static final java.lang.String CANCEL_EVENT
public static final java.lang.String TIMEOUT_EVENT
public static final java.lang.String MALFUNCTION_EVENT
public static final java.lang.String BAD_CHARACTER_EVENT
public static final java.lang.String UNKNOWN_EVENT
Method Detail |
public void cancel() throws DSECheckReaderException
public void close() throws DSECheckReaderException
public java.lang.String getDataRead()
public void open() throws DSECheckReaderException
public void read() throws DSECheckReaderException
public void readAndUnformat(Context aContext, FormatElement aFormat) throws DSECheckReaderException
aContext
- ContextaFormat
- FormatElementpublic java.lang.String readAndWait() throws DSECheckReaderException
public void readAndWaitAndUnformat(Context aContext, FormatElement aFormat) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSECheckReaderException
aContext
- ContextaFormat
- FormatElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |