Appendix C - Java Code Examples
Appendix C
C.1
Open Device Example
public void openDevice()
{
MTSCRAEventHandler
MagTekUSCRA mMTSCRA = new MagTekUSCRA();
mMTSCRA.init(mEvent);
long rv = mMTSCRA.openDevice("");
if(rv==0)
System.out.print("SUCESS");
else
System.out.print("FAIL");
}
C.2
Close Device Example
public void closeDevice()
{
MTSCRAEventHandler
MagTekUSCRA mMTSCRA = new MagTekUSCRA();
mMTSCRA.init(mEvent);
long rv = mMTSCRA. closeDevice ();
if(rv==0)
System.out.print("SUCESS");
else
System.out.print("FAIL");
}
Dynamag, DynaMAX, eDynamo, mDynamo, tDynamo, DynaWave, and iDynamo 6| Secure Card Reader Authenticators | Programmer's
Reference (Java and Java Applet)
Page 55
Java Code Examples
mEvent
mEvent
= new MTSCRAEventHandler();
= new MTSCRAEventHandler();
Need help?
Do you have a question about the Dynamag and is the answer not in the manual?
Questions and answers