User manual
JPOS Service Object Reference, Model IDMB Reader
A Sample for using MSR JPOS
The following code is the sample:
import jpos.*;
import jpos.config.*;
import jpos.config.simple.*;
import jpos.loader.*;
import jpos.loader.simple.*;
import jpos.profile.*;
import jpos.services.*;
import jpos.util.*;
import jpos.util.tracing.*;
public class YourClass{
public static void main(String [] args){
MSR msr=new MSR(); /* new an instance */
try{
msr.open(TestConst.testdevicename);
}catch(JposException e){
System.err.print(e);
}
/**
Do something here.
*/
try{
msr.close();
}catch(JposException e){
System.err.print(e);
}
}
}
Copyright © 2006, International Technologies & systems Corporation. All rights reserved.
Page 17 of 17