Java Reference
In-Depth Information
CLDC Profiles
CLDC itself provides only a basic set of classes for a J2ME profile. In Chapter 1 , you were given
an overview of the two profiles available for CLDC: the Mobile Information Device Profile
(MIDP) and the PDA Profile (PDAP). Now, we will present the additional functionality the
profiles add to CLDC. We will start with MIDP and then give an overview of PDAP. Figure 2.1
shows an overview of the J2ME CLDC packages and their intersections with J2SE.
Figure 2.1. J2ME CLDC packages including the MID and PDA profiles and
intersections with J2SE.
MID Profile
As described in Chapter 1 , MIDP is designed for mobile information devices such as cellular
phones and two-way pagers. MIDP adds several new packages and classes to CLDC. The
following sections list the additions per package.
Additions to java.util
MIDP adds the classes Timer and TimerTask in the package java.lang to the set of
supported classes. Timer and TimerTask allow simplified scheduling of tasks for a point of
time in the future, including repeated tasks.
Additions to java.lang
MIDP adds the IllegalStateException in the package java.lang . The
IllegalStateException is thrown when a method is called in a state of the application
 
 
Search WWH ::




Custom Search