net.rim.device.api.xml.jaxp
Class SAXParserImpl

java.lang.Object
  |
  +--net.rim.device.api.xml.parsers.SAXParser
        |
        +--net.rim.device.api.xml.jaxp.SAXParserImpl

public class SAXParserImpl
extends SAXParser

Since:
JDE 4.0.0
See Also:
javax.xml.parsers.SAXParser

Constructor Summary
SAXParserImpl()
           
 
Method Summary
 boolean getAllowUndefinedNamespaces()
          Determines whether this parser allows undefined namespaces.
 boolean isNamespaceAware()
          Indicates whether or not this parser is configured to understand namespaces.
 boolean isValidating()
          Indicates whether or not this parser is configured to validate XML documents.
 void parse(InputSource is, DefaultHandler dh)
          Parse the content of the given org.xml.InputSource instance as XML using the specified DefaultHandler.
 void parse(InputStream is, DefaultHandler dh)
          Parse the content of the given InputStream instance as XML using the specified DefaultHandler.
 void parse(InputStream is, DefaultHandler dh, IntHashtable tagTables, IntHashtable attrStartTables, IntHashtable attrTables)
          Parse the content of the given InputStream instance as XML using the specified DefaultHandler.
 void parse(InputStream is, DefaultHandler dh, String[] tagTable, String[] attrStartTable, String[] attrTable)
          Parse the content of the given InputStream instance as XML using the specified DefaultHandler.
 void parse(String url, DefaultHandler dh, boolean autoCodeBookManagement)
          Parse the content of the given url as XML using the specified DefaultHandler.
 void setAllowUndefinedNamespaces(boolean allowUndefinedNamespaces)
          Configures this parser to allow or disallow undefined namespaces.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXParserImpl

public SAXParserImpl()
Since:
JDE 4.0.0
Method Detail

getAllowUndefinedNamespaces

public boolean getAllowUndefinedNamespaces()
Description copied from class: SAXParser
Determines whether this parser allows undefined namespaces.
Overrides:
getAllowUndefinedNamespaces in class SAXParser
Since:
JDE 4.0.0

setAllowUndefinedNamespaces

public void setAllowUndefinedNamespaces(boolean allowUndefinedNamespaces)
Description copied from class: SAXParser
Configures this parser to allow or disallow undefined namespaces.
Overrides:
setAllowUndefinedNamespaces in class SAXParser
Since:
JDE 4.0.2

isNamespaceAware

public boolean isNamespaceAware()
Indicates whether or not this parser is configured to understand namespaces.
Overrides:
isNamespaceAware in class SAXParser
Returns:
true if this parser is configured to understand namespaces; false otherwise.
Since:
JDE 4.0.0

isValidating

public boolean isValidating()
Indicates whether or not this parser is configured to validate XML documents.
Overrides:
isValidating in class SAXParser
Returns:
true if this parser is configured to validate XML documents; false otherwise.
Since:
JDE 4.0.0

parse

public void parse(InputStream is,
                  DefaultHandler dh)
           throws SAXException,
                  IOException
Parse the content of the given InputStream instance as XML using the specified DefaultHandler.
Overrides:
parse in class SAXParser
Parameters:
is - InputStream containing the content to be parsed.
dh - The SAX DefaultHandler to use.
Throws:
IOException - If any IO errors occur.
IllegalArgumentException - If the given InputStream is null.
SAXException - If the underlying parser throws a SAXException while parsing.
Since:
JDE 4.0.2
See Also:
org.xml.sax.DocumentHandler

parse

public void parse(InputSource is,
                  DefaultHandler dh)
           throws SAXException,
                  IOException
Parse the content of the given org.xml.InputSource instance as XML using the specified DefaultHandler.
Overrides:
parse in class SAXParser
Parameters:
is - InputSource containing the content to be parsed.
dh - The SAX DefaultHandler to use.
Throws:
IOException - If any IO errors occur.
IllegalArgumentException - If the given InputStream is null.
SAXException - If the underlying parser throws a SAXException while parsing.
Since:
JDE 4.0.2
See Also:
org.xml.sax.DocumentHandler

parse

public void parse(InputStream is,
                  DefaultHandler dh,
                  String[] tagTable,
                  String[] attrStartTable,
                  String[] attrTable)
           throws SAXException,
                  IOException
Parse the content of the given InputStream instance as XML using the specified DefaultHandler.
Parameters:
is - InputStream containing the content to be parsed.
dh - The SAX DefaultHandler to use.
tagTable - The tagTable
attrStartTable - The attrStartTable
attrTable - The attrValueTable
Throws:
IOException - If any IO errors occur.
IllegalArgumentException - If the given InputStream is null.
SAXException - If the underlying parser throws a SAXException while parsing.
Since:
JDE 4.0.2
See Also:
org.xml.sax.DocumentHandler

parse

public void parse(InputStream is,
                  DefaultHandler dh,
                  IntHashtable tagTables,
                  IntHashtable attrStartTables,
                  IntHashtable attrTables)
           throws SAXException,
                  IOException
Parse the content of the given InputStream instance as XML using the specified DefaultHandler.
Parameters:
is - InputStream containing the content to be parsed.
dh - The SAX DefaultHandler to use.
tagTable - The tagTables
attrStartTable - The attrStartTables
attrTable - The attrValueTables
Throws:
IOException - If any IO errors occur.
IllegalArgumentException - If the given InputStream is null.
SAXException - If the underlying parser throws a SAXException while parsing.
Since:
JDE 4.0.2
See Also:
org.xml.sax.DocumentHandler

parse

public void parse(String url,
                  DefaultHandler dh,
                  boolean autoCodeBookManagement)
           throws SAXException,
                  IOException
Parse the content of the given url as XML using the specified DefaultHandler.
Parameters:
url - the URL of the XML to parse
dh - The SAX DefaultHandler to use.
autoCodeBookManagement - perform automatic code book management
Since:
JDE 4.0.2


Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.