FileDocCategorySizeDatePackage
Events.javaAPI DocJ2ME MIDP 2.01147Thu Nov 07 12:02:22 GMT 2002com.sun.midp.lcdui

Events

public class Events extends Object
This class establishes the connection to the event queue in the virtual machime, and allows the Java code to read the event data from the queue.

Fields Summary
Constructors Summary
Methods Summary
public native voidopen()
Open the connection to the native event queue.

throws
IOException if an I/O error occurs.

public native intreadInt()
Reads the next 4 bytes from the event queue, and return as an integer.

return
the next four bytes of the event queue, interpreted as an int.
exception
IOException if an I/O error occurs.

public native java.lang.StringreadUTF()
Reads from the event queue a String object.

return
a string
exception
IOException if an I/O error occurs.