Java Reference
In-Depth Information
Chapter 10. Third-Party Libraries
IN THIS CHAPTER
XML
Simple Object Access Protocol: SOAP
MathFP
The Bouncy Castle Crypto API
User Interface Extensions
At this point we have discussed the whole CLDC API, including all core packages and the profile-
specific extensions of MIDP and PDAP. You might have noticed that some important APIs aren't
provided in CLDC. However, for several purposes such as parsing XML or fixed-point integer
arithmetic, third-party libraries are available for CLDC.
In this chapter, we will discuss a few important libraries that can be downloaded from the Internet.
In most cases, we will demonstrate their usage by creating a small sample application.
XML
Currently, three different libraries are available for XML parsing. Table 10.1 shows an overview of the
features and limitations of the different APIs. In general, a trade-off exists between the package size
and the features available. None of the XML parsers available for CLDC is a validating XML parser.
Tabl e 10.1. XML Par s ers Available for CLDC
Parser
JAR
Size
License
URL and Remarks
NanoXML KVM
port
9.7KB
Libpng
http://nanoxml.sourceforge.net
No support for mixed content.
The whole document is parsed to a memory
structure.
Optional SAX interface available. XML writing
s upport.
TinyXML KVM
port
7.9KB
GPL
http://www.microjava.com
SAX-like callback interface.
No XML writing support.
KXML
19.9KB Enhydra
License
http://www.kxml.org
Namespace support.
Optional WBXML/WML support.
Optional kDOM support.
XML writing support.
 
 
 
Search WWH ::




Custom Search