public abstract class MIDlet { private MIDletProxy state; MIDletProxy getProxy() { return state; } protected MIDlet() { state = new MIDletProxy(this); } protected abstract void startApp() throws MIDletStateChangeException; protected abstract void pa ...
public final class Class { private Class() {} public static native Class forName(String className) throws ClassNotFoundException; public native Object newInstance() throws InstantiationException, IllegalAccessException; public native boolean isInstance(Object ...
 public final class System { private System() { } public final static PrintStream out = getConsoleOutput(); private static PrintStream getConsoleOutput() { return new PrintStream(new SystemOutputStream()); } public final static PrintStream err = out; public stati ...
public class Object { public Object() { } public final native Class getClass(); public native int hashCode(); public boolean equals(Object obj) { return this == obj; } public String toString() { return getClass().getName() + &quo ...
public class Runtime { private static Runtime currentRuntime = new Runtime(); public static Runtime getRuntime() { return currentRuntime; } private Runtime() {} public void exit(int status) { throw new SecurityException( "MIDP lifecycle do ...
声明:解读J2ME源代码是来自midp-2_0-src-windows-i686为基础的代码。 midp2.0系列的代码Sun早已经开放了。 这里解读J2ME源代码其实是以Sun的WTK为基础的。 并非各个手机平台,例如JBlend上的代码。即是以MIDP为主层面的。 但是,这并不影响其他手机平台的理解。 恰恰,理解了Sun的WTK,也能理解其他平台的J2ME。