sim.access
Class SIMSystem
java.lang.Object
|
+--sim.access.SIMSystem
- public class SIMSystem
- extends java.lang.Object
The SIMSystem class provides a way to get a view of the GSM File system.
In any case, the client applet (SIM Tookit or other) will only access to methods
of the SIMView interface. No instance of this class is needed.
Applet example :
public class MyApplet extends Applet {
private SIMView theGsmApplet;
private byte[] buffer;
public MyApplet () {
// get a reference to the GSM interface
theGsmApplet = SIMSystem.getTheSIMView();
// create the exchange buffer
buffer = new byte[32];
}
public static void install(byte bArray[],short bOffset, byte bLength) throws ISOException {
// create and register the applet
MyApplet myAppletRef = new MyApplet();
myAppletRef.register();
}
public void getADN(short adnNumber) {
// select EF ADN in DF GSM
theGsmApplet.select((short)SIMView.FID_DF_TELECOM);
theGsmApplet.select((short)SIMView.FID_EF_ADN);
// reads the record from EF ADN and put it in the exchange buffer
theGsmApplet.readRecord((short)adnNumber,
(byte)SIMView.REC_ACC_MODE_ABSOLUTE_CURRENT,
(short)0,
(byte[])buffer,
(short)0,
(short)32);
}
}
- Version:
- 5.4.0
Methods inherited from class java.lang.Object |
equals |
getTheSIMView
public static SIMView getTheSIMView()
- Return a reference to the GSM interface
- Returns:
- a reference to a class which implements the SIMView interface