The MIDP Networking Model

In MIDP, as in J2SE, IO streams are the primary mechanism available to applications to read and write streams of data. Both J2SE and J2ME have a java.io package that contains these stream classes. Additionally, the MIDP defines the javax.microedition.io package, which supports networking and communications for MIDP applications. This package is in contrast to the J2SE java.net package, which defines networking support on that platform.

MIDP applications use the javax.microedition.io types to create and manipulate various kinds of network connections. They then read from these connections and write to them using the types in the MIDP java.io package, which contains a subset of the classes and interfaces in the J2SE

Get Wireless J2ME™ Platform Programming 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.