org.apache.mirae.j2me.xml
Class SAXParserImpl

java.lang.Object
  extended byjavax.xml.parsers.SAXParser
      extended byorg.apache.mirae.j2me.xml.SAXParserImpl

public class SAXParserImpl
extends SAXParser

This is an implementation of javax.xml.parsers.SAXParser

Author:
Ias (iasandcb@tmax.co.kr)

Constructor Summary
SAXParserImpl(SAXParserFactory factory)
           
 
Method Summary
 boolean isNamespaceAware()
          Indicates whether or not this parser is configured to understand namespaces.
 boolean isNamespacePrefixAware()
          This additional feature should be supported by SAX2
 boolean isValidating()
          Indicates whether or not this parser is configured to validate XML documents.
 void parse(InputSource is, DefaultHandler handler)
          Parse the content given InputSource as XML using the specified DefaultHandler.
 void parse(java.io.InputStream is, DefaultHandler dh)
          Parse the content of the given InputStream instance as XML using the specified DefaultHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXParserImpl

public SAXParserImpl(SAXParserFactory factory)
Method Detail

parse

public void parse(java.io.InputStream is,
                  DefaultHandler dh)
           throws SAXException,
                  java.io.IOException
Description copied from class: SAXParser
Parse the content of the given InputStream instance as XML using the specified DefaultHandler.

Specified by:
parse in class SAXParser
Parameters:
is - InputStream containing the content to be parsed.
dh - The SAX DefaultHandler to use.
Throws:
java.io.IOException - If any IO errors occur.
SAXException - If the underlying parser throws a SAXException while parsing.
See Also:
SAXParser.parse(InputStream, DefaultHandler)

parse

public void parse(InputSource is,
                  DefaultHandler handler)
           throws SAXException,
                  java.io.IOException
Description copied from class: SAXParser
Parse the content given InputSource as XML using the specified DefaultHandler.

Specified by:
parse in class SAXParser
Parameters:
is - The InputSource containing the content to be parsed.
handler - The SAX DefaultHandler to use.
Throws:
SAXException - If the underlying parser throws a SAXException while parsing.
java.io.IOException - If any IO errors occur.
See Also:
SAXParser.parse(InputSource, DefaultHandler)

isNamespaceAware

public boolean isNamespaceAware()
Description copied from class: SAXParser
Indicates whether or not this parser is configured to understand namespaces.

Specified by:
isNamespaceAware in class SAXParser
Returns:
true if this parser is configured to understand namespaces; false otherwise.
See Also:
SAXParser.isNamespaceAware()

isNamespacePrefixAware

public boolean isNamespacePrefixAware()
This additional feature should be supported by SAX2

Returns:
a boolean value indicating whether the feature is on or off

isValidating

public boolean isValidating()
Description copied from class: SAXParser
Indicates whether or not this parser is configured to validate XML documents.

Specified by:
isValidating in class SAXParser
Returns:
true if this parser is configured to validate XML documents; false otherwise.
See Also:
SAXParser.isValidating()


Copyright © 2005 Apache Software Foundation. All Rights Reserved.