Methods Summary |
---|
public com.sun.jump.common.JUMPContent[] | convertToMIDletApplications(int suiteId)
try {
MIDletSuiteInfo suiteInfo = getMIDletSuiteInfo(suiteId);
MIDletInfo[] midletInfos = getMIDletInfos(suiteInfo);
JUMPMIDletSuiteInfo currentMIDletSuiteInfo =
new JUMPMIDletSuiteInfo(suiteInfo, midletInfos);
return currentMIDletSuiteInfo.getMIDletApplications();
} catch (IOException e) {
System.err.println(e + " thrown while accessing the midlet suite " + suiteId);
return new JUMPContent[0];
} catch (MIDletSuiteLockedException e) {
System.err.println(e + " thrown while accessing the midlet suite " + suiteId);
return new JUMPContent[0];
} catch (MIDletSuiteCorruptedException e) {
System.err.println(e + " thrown while accessing the midlet suite " + suiteId);
return new JUMPContent[0];
}
|
public int[] | getInstalledMIDletSuiteIds()
return storage.getListOfSuites();
|
private com.sun.midp.midletsuite.MIDletInfo[] | getMIDletInfos(com.sun.midp.midletsuite.MIDletSuiteInfo suiteInfo)
MIDletSuiteImpl midletSuite = storage.getMIDletSuite(suiteInfo.suiteId, false);
MIDletInfo[] midletInfos = new MIDletInfo[midletSuite.getNumberOfMIDlets()];
for (int i = 0; i < midletInfos.length; i++) {
midletInfos[i] = new MIDletInfo(
midletSuite.getProperty("MIDlet-" + (i+1)));
}
// Need to unlock midletsuite.
midletSuite.close();
return midletInfos;
|
private com.sun.midp.midletsuite.MIDletSuiteInfo | getMIDletSuiteInfo(int id)
return storage.getMIDletSuiteInfo(id);
|
public void | remove(int id)
try {
storage.remove(id);
} catch (MIDletSuiteLockedException e) {
new RuntimeException(e);
}
|