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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access