final jpos.MSR msr = (jpos.MSR) control;
msr.setDecodeData(true);
msr.setTracksToRead(2);
// create the data listner
msr.addDataListener(new DataEventAdaptor() {
public void dataOccurred(jpos.events.DataEvent event) {
String[] decodedData = new String[7];
byte[] track1 = null;
byte[] track2 = null;