FileDocCategorySizeDatePackage
Main.javaAPI DocJava Card933Wed Mar 22 21:07:22 GMT 2006com.sun.javacard.samples.ServiceDemo

Main

public class Main extends javacard.framework.Applet
author
vo113324

Fields Summary
private Dispatcher
disp
private Service
serv
Constructors Summary
public Main()

        disp = new Dispatcher( (short) 1);
        serv = new TestService();
        disp.addService(serv, Dispatcher.PROCESS_COMMAND);
        
        register();
    
Methods Summary
public static voidinstall(byte[] aid, short s, byte b)

        new Main();
    
public voidprocess(javacard.framework.APDU apdu)

        
        disp.process(apdu);