FileDocCategorySizeDatePackage
Remote1Impl.javaAPI DocphoneME MR2 API (J2ME)7875Wed May 02 18:00:36 BST 2007com.sun.midp.io.j2me.jcrmi

Remote1Impl

public class Remote1Impl extends javacard.framework.service.CardRemoteObject implements Remote1

Fields Summary
private short[]
ids
static final short
reason
Constructors Summary
public Remote1Impl()


      
        super();
    
Methods Summary
public booleangetBoolean(boolean v)

        return v;
    
public boolean[]getBooleanArray(boolean[] v)

        return v;
    
public bytegetByte(byte v)

        return v;
    
public byte[]getByteArray(byte[] v)

        return v;
    
public shortgetChannel()

        return DataTestApplet.channel;
    
public shortgetChannelId()

        return ids[DataTestApplet.channel];
    
public byte[]getNewArray(short length)

        return new byte[(short) length];
    
public Remote1getReference1()

        return null;
    
public java.rmi.RemotegetReference2()

        return null;
    
public shortgetShort(short v)

        return v;
    
public short[]getShortArray(short[] v)

        return v;
    
public voidsetChannelId(short id)

        ids[DataTestApplet.channel] = id;
    
public voidthrowException(short code)


          
        switch (code) {
            case 0: throw new java.lang.Throwable();
            case 1: throw new java.lang.ArithmeticException();
            case 2: throw new java.lang.ArrayIndexOutOfBoundsException();
            case 3: throw new java.lang.ArrayStoreException();
            case 4: throw new java.lang.ClassCastException();
            case 5: throw new java.lang.Exception();
            case 6: throw new java.lang.IndexOutOfBoundsException();
            case 7: throw new java.lang.NegativeArraySizeException();
            case 8: throw new java.lang.NullPointerException();
            case 9: throw new java.lang.RuntimeException();
            case 10: throw new java.lang.SecurityException();
            case 11: throw new java.io.IOException();
            case 12: throw new java.rmi.RemoteException();
            case 13: throw new javacard.framework.APDUException(reason);
            case 14: throw new javacard.framework.CardException(reason);
            case 15: throw new javacard.framework.CardRuntimeException(reason);
            case 16: throw new javacard.framework.ISOException(reason);
            case 17: throw new javacard.framework.PINException(reason);
            case 18: throw new javacard.framework.SystemException(reason);
            case 19: throw new javacard.framework.TransactionException(reason);
            case 20: throw new javacard.framework.UserException(reason);
            case 21: throw new javacard.security.CryptoException(reason);
            case 22: throw new javacard.framework.service.ServiceException(reason);
        }
    
public voidthrowSubclass(short code)

        switch (code) {
            case 0: throw new Throwable_();
            case 1: throw new ArithmeticException_();
            case 2: throw new ArrayIndexOutOfBoundsException_();
            case 3: throw new ArrayStoreException_();
            case 4: throw new ClassCastException_();
            case 5: throw new Exception_();
            case 6: throw new IndexOutOfBoundsException_();
            case 7: throw new NegativeArraySizeException_();
            case 8: throw new NullPointerException_();
            case 9: throw new RuntimeException_();
            case 10: throw new SecurityException_();
            case 11: throw new IOException_();
            case 12: throw new RemoteException_();
            case 13: throw new APDUException_(reason);
            case 14: throw new CardException_(reason);
            case 15: throw new CardRuntimeException_(reason);
            case 16: throw new ISOException_(reason);
            case 17: throw new PINException_(reason);
            case 18: throw new SystemException_(reason);
            case 19: throw new TransactionException_(reason);
            case 20: throw new UserException_(reason);
            case 21: throw new CryptoException_(reason);
            case 22: throw new ServiceException_(reason);
        }
    
public voidvoidMethod()