Introduction
The Web Services APIs (WSA) for Java 2 Platform, Micro Edition (J2ME), as defined by the Java Community Process Java Specification Request (JSR) 172 (see Resources), defines two independent optional packages for remote service invocation and XML parsing. These Java APIs are targeted at both the Connected Device Configuration (CDC) and the Connected Limited Device Configuration (CLDC 1.0 and CLDC 1.1)-based profiles. Because JSR 172 provides support for remote service invocation (see Web Services API for J2ME, Part 1) and XML parsing at the device level, you don`t have to embed these functions into each application. This article introduces the Java API for XML Processing (JAXP) optional package.
Back to top
The JAXP for J2ME
The JSR 172 XML parsing API for J2ME is based on a subset of Java 2 Platform, Standard Edition (J2SE) JAXP 1.2 API and Simple API for XML Parsing (SAX) 2.0 interfaces. JAXP for J2ME is based on a subset of JAXP 1.2 and SAX 2.0 because of the memory constraints found on typical J2ME platforms. JAXP for J2ME consists of the following Java packages:
javax.xml.parsers: contains the SAX parser, exception, and error classes
Interfaces: None
Classes: SAXParserFactory (factory of SAX parsers), SAXParser (represents a SAX parser)
Exceptions: ParserConfigurationException (parser configuration)
Errors: FactoryConfigurationError (error related to parser factories such as parser not found)
org.xml.sax: the SAX 2.0 subset API
Interfaces: Attributes (an element`s attributes), Locator (an event`s document location)
Classes: InputSource (represents an XML input source)
Exceptions: SAXException (general/base SAX exception), SAXNotRecognizedException (feature not recognized), SAXNotSupportedException (feature recognized but not supported), SAXParseException (SAX parsing exception)
Errors: None
org.xml.sax.helpers: defines the base class for event processing
Interfaces: None
Classes: DefaultHandler (base event processing handler with default implementation)
Exceptions: None
Errors: None
JAXP for J2ME provides all the classes, interfaces, and exceptions needed to parse XML documents. The J2ME JAXP Javadoc or specification (see Resources) provides more information on these classes and interfaces.
Source:
http://www.java2s.com/Article/Java/SOA-Web-Services/Web_Services_APIs_for_J2ME_P
The Web Services APIs (WSA) for Java 2 Platform, Micro Edition (J2ME), as defined by the Java Community Process Java Specification Request (JSR) 172 (see Resources), defines two independent optional packages for remote service invocation and XML parsing. These Java APIs are targeted at both the Connected Device Configuration (CDC) and the Connected Limited Device Configuration (CLDC 1.0 and CLDC 1.1)-based profiles. Because JSR 172 provides support for remote service invocation (see Web Services API for J2ME, Part 1) and XML parsing at the device level, you don`t have to embed these functions into each application. This article introduces the Java API for XML Processing (JAXP) optional package.
Back to top
The JAXP for J2ME
The JSR 172 XML parsing API for J2ME is based on a subset of Java 2 Platform, Standard Edition (J2SE) JAXP 1.2 API and Simple API for XML Parsing (SAX) 2.0 interfaces. JAXP for J2ME is based on a subset of JAXP 1.2 and SAX 2.0 because of the memory constraints found on typical J2ME platforms. JAXP for J2ME consists of the following Java packages:
javax.xml.parsers: contains the SAX parser, exception, and error classes
Interfaces: None
Classes: SAXParserFactory (factory of SAX parsers), SAXParser (represents a SAX parser)
Exceptions: ParserConfigurationException (parser configuration)
Errors: FactoryConfigurationError (error related to parser factories such as parser not found)
org.xml.sax: the SAX 2.0 subset API
Interfaces: Attributes (an element`s attributes), Locator (an event`s document location)
Classes: InputSource (represents an XML input source)
Exceptions: SAXException (general/base SAX exception), SAXNotRecognizedException (feature not recognized), SAXNotSupportedException (feature recognized but not supported), SAXParseException (SAX parsing exception)
Errors: None
org.xml.sax.helpers: defines the base class for event processing
Interfaces: None
Classes: DefaultHandler (base event processing handler with default implementation)
Exceptions: None
Errors: None
JAXP for J2ME provides all the classes, interfaces, and exceptions needed to parse XML documents. The J2ME JAXP Javadoc or specification (see Resources) provides more information on these classes and interfaces.
Source:
http://www.java2s.com/Article/Java/SOA-Web-Services/Web_Services_APIs_for_J2ME_P
Search News
News Categories
What's the News?
Post a link to something interesting from another site, or submit your own original writing for the Java community to read.
Most Popular News
-
How to stand out from other Java/JEE Professionals?
Published about 14-01-2009 | Rated +3 -
10 reasons IT certification will be important in 2009
Published about 05-01-2009 | Rated +2 -
The 9 hottest skills for `09
Published about 02-01-2009 | Rated +1 -
New Features in Servlets 3.0
Published about 05-01-2009 | Rated +4
Most Recent User Submitted News
- What Is Java?
Published about 27-04-2009 | Rated +1 - Ten Amazing Java Applications
Published about 11-01-2009 | Rated +1 - Servicelayer beta release: Instant web services for Java Apps
Published about 19-01-2009 | Rated 0 - IBM Real Time Application Execution Optimizer for Java
Published about 01-09-2009 | Rated 0







