O'Reilly logo

Micro Java™ Game Development by Roman Verhosek, David Fox

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required