JXFS Magnetic Stripe Reader Service

The JXFS Magnetic Stripe Reader Service (JXFSMsd Service) reads and writes context data to and from magnetic stripe media devices (MSDs) that are supported by a J/XFS driver.

This service performs a read operation to obtain the data contained in the tracks specified by the tracksToRead parameter. The data that is read is unformatted in the context provided, using the corresponding format for each track. If reading from a specific track is not desired then the corresponding format track is set null. A call to this method is a synchronous call, and the application waits until the call returns, instead of receiving events. If the media is present, the read operation is performed immediately; otherwise, the service waits until it is present.

This service also performs a write operation. Data to write on each track is previously taken from the context and formatted with the corresponding track format. A call to this method is a synchronous call, and the application waits until the call returns, instead of receiving events.

If the media is present, the read operation is performed immediately; otherwise, the device waits until the media is present. If the newCard parameter is true, the card (media) must be inserted after the operation is started.