|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.xml.parsers.SAXParser
net.rim.device.api.xml.jaxp.SAXParserImpl
public class SAXParserImpl
Parses XML documents.
SAXParser| Constructor Summary | ||
|---|---|---|
SAXParserImpl()
|
||
| Method Summary | ||
|---|---|---|
boolean |
getAllowUndefinedNamespaces()
Determines whether this parser is configured to allow undefined namespaces. |
|
boolean |
isNamespaceAware()
Determines whether this parser is configured to be namespace aware. |
|
boolean |
isValidating()
Determines whether this parser validates documents. |
|
void |
parse(InputStream is,
DefaultHandler dh)
Parses 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)
Parses 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)
Parses the content of the given InputStream
instance as XML using the specified
DefaultHandler. |
|
void |
parse(String url,
DefaultHandler dh,
boolean autoCodeBookManagement)
Parses the content of the given URL as XML using the specified DefaultHandler. |
|
void |
parse(InputSource is,
DefaultHandler dh)
Parses the content of the given org.xml.InputSource
instance as XML using the specified
DefaultHandler. |
|
void |
setAllowUndefinedNamespaces(boolean allowUndefinedNamespaces)
Configures this parser to allow undefined namespaces. |
|
void |
setNamespaceAware(boolean isNamespaceAware)
Configures this parser to be namespace aware. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAXParserImpl()
| Method Detail |
|---|
public boolean getAllowUndefinedNamespaces()
getAllowUndefinedNamespaces in class SAXParserpublic void setAllowUndefinedNamespaces(boolean allowUndefinedNamespaces)
setAllowUndefinedNamespaces in class SAXParserallowUndefinedNamespaces - True to configure this
parser to allow undefined name spaces; false otherwise.public boolean isNamespaceAware()
isNamespaceAware in class SAXParserpublic void setNamespaceAware(boolean isNamespaceAware)
setNamespaceAware in class SAXParserisNamespaceAware - True to configure this
parser to be namespaces aware; false otherwise.public boolean isValidating()
SAXParser
isValidating in class SAXParser
public void parse(InputStream is,
DefaultHandler dh)
throws SAXException,
IOException
InputStream
instance as XML using the specified
DefaultHandler.
parse in class SAXParseris - InputStream containing the content to parse.dh - The SAX DefaultHandler to use.
IOException - Thrown if an IO errors occur.
IllegalArgumentException - Thrown if the given InputStream is null.
SAXException - Thrown if the underlying parser throws a
SAXException while parsing.DocumentHandler
public void parse(InputSource is,
DefaultHandler dh)
throws SAXException,
IOException
org.xml.InputSource
instance as XML using the specified
DefaultHandler.
parse in class SAXParseris - InputSource containing the content to parse.dh - The SAX DefaultHandler to use.
IOException - Thrown if any IO errors occur.
IllegalArgumentException - Thrown if the given InputStream is null.
SAXException - Thrown if the underlying parser throws a
SAXException while parsing.DocumentHandler
public void parse(InputStream is,
DefaultHandler dh,
String[] tagTable,
String[] attrStartTable,
String[] attrTable)
throws SAXException,
IOException
InputStream
instance as XML using the specified
DefaultHandler.
is - InputStream containing the content to parse.dh - The SAX DefaultHandler to use.tagTable - A lookup table of XML tags used to decode WBXML.attrStartTable - A lookup table of XML attribute names used to decode WBXML.attrTable - A lookup table of XML attribute values used to decode WBXML.
IOException - Thrown if an IO errors occur.
IllegalArgumentException - Thrown if the given InputStream is null.
SAXException - Thrown if the underlying parser throws a
SAXException while parsing.DocumentHandler
public void parse(InputStream is,
DefaultHandler dh,
IntHashtable tagTables,
IntHashtable attrStartTables,
IntHashtable attrTables)
throws SAXException,
IOException
InputStream
instance as XML using the specified
DefaultHandler.
For additional information, please consult the WBXML spec
at this address.
is - InputStream containing the content to parse.dh - The SAX DefaultHandler to use.tagTable - Lookup tables of XML tags used to decode WBXML.attrStartTable - Lookup tables of XML attribute names used to decode WBXML.attrTable - Lookup table of XML attribute values used to decode WBXML.
IOException - Thrown if an IO errors occur.
IllegalArgumentException - Thrown if the given InputStream is null.
SAXException - Thrown if the underlying parser throws a
SAXException while parsing.DocumentHandler
public void parse(String url,
DefaultHandler dh,
boolean autoCodeBookManagement)
throws SAXException,
IOException
DefaultHandler.
url - The URL of the XML to parse.dh - The SAX DefaultHandler to use.autoCodeBookManagement - True to perform automatic code book management; false otherwise.
SAXException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal