LANDP MSR/E Device Service

The LANDP® MSR/E Device Service provides access from Java™ applications to a Magnetic Stripe Reader and Encoder (MSR/E) controlled by the LAN Distributed Platform (LANDP) server MSRE47## or compatible.

This service is a subclass of the Service class, and implements the MsreServiceInterface interface. It generates both JavaBean events and the following events.

Table 1. LANDP MSR/E Device Service events
Event Description
ReadEvent The service generates this event as a result of a read() operation in which the user passes the card through the device and the device successfully reads the card. The data field of the event object contains a string with the magnetic stripe data.
WriteEvent The service generates this event as a result of a write() operation in which the user passes the card through the device and the device successfully writes to the card.
TimeoutEvent The service generates this event when a read(int timeout) or write(String data, int timeout) operation exceeds the time limit (timeout value) without any card being successfully read or written. The service cancels the operation, which puts the device in an idle state.

The MsreLandp class is the JavaBean class that is used by the MsreService class to access the device.