Java ME Developer Guide

Chapter 11 - JSR-139 - CLDC 1.1

11 JSR-139 - CLDC 1.1

11.1 JSR-139

CLDC 1.1 is an incremental release of CLDC version 1.0. CLDC 1.1 is fully backwards compatible with CLDC 1.0. Implementation of CLDC 1.1 supports the following:

Floating Point

￿Data Types float and double

￿All floating point byte codes

￿New Data Type classes Float and Double

￿Library classes to handle floating point values

Weak reference

Classes Calender, Date and TimeZone are Java SE compliant

Thread objects to be compliant with Java SE.

The support of thread objects to be compliant with Java SE requires the addition of Thread.getName and a few new constructors. The following table lists the additional classes, fields, and methods supported for CLDC 1.1 compliance:

 

Classes

Additional Fields/

Comments

 

 

Methods

 

System Classes

Java.lang.Thread

Thread (Runnable

Allocates a new Thread

 

 

target, String

object with the given

 

 

name)

target and name

 

 

Thread (String

Allocates a new Thread

 

 

name)

object with the given

 

 

 

name

 

 

String getName ()

Returns this thread's

 

 

 

name

 

 

Void interrupt ()

Interrupts this thread

 

Java.lang.String

Boolean equ-

Compares this string

 

 

alIgnoreCase

to another String, ig-

DRAFT - Subject to Change [81/201]

Page 81
Image 81
Motorola maxx V6 manual JSR-139 Cldc, Draft Subject to Change 81/201, Classes Additional Fields Comments Methods