Appendix D. The iAppli API

Packages

The iAppli API contains five major packages:

  • com.nttdocomo.io—. Input/output over the network (using HTTP) and to/from the ScratchPad.

  • com.nttdocomo.lang—. The standard language constructs specific to iApplis.

  • com.nttdocomo.net—. Networking support classes.

  • com.nttdocomo.ui—. The user interface, image, sound, and canvas components.

  • com.nttdocomo.util—. Other supporting utility classes.

com.nttdocomo.io Interfaces

There is just one class for input and output:

java.lang.Object
 java.lang.Throwable
  java.lang.Exception
   java.io.IOException
    com.nttdocomo.io.ConnectionException

com.nttdocomo.io Interfaces

Define the communication with HTTP. Extend from both InputConnection and OutputConnection:

 javax.microedition.io.Connection ...

Get Micro Java™ Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.