|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.xml.parsers.SAXParser
Parses XML documents.
Note: This class is not thread-safe. Applications must serialize access to this class if two or more threads access the same instance.
| Constructor Summary | ||
protected |
SAXParser()
|
|
| Method Summary | ||
abstract boolean |
getAllowUndefinedNamespaces()
Determines whether this parser allows undefined namespaces. |
|
abstract boolean |
isNamespaceAware()
Determines whether this parser understands namespaces. |
|
abstract boolean |
isValidating()
Determines whether this parser validates documents. |
|
abstract void |
parse(InputSource is,
DefaultHandler dh)
Parses the given InputSource. |
|
abstract void |
parse(InputStream is,
DefaultHandler dh)
Parses the given InputStream. |
|
abstract void |
setAllowUndefinedNamespaces(boolean allow)
Configures this parser to allow or disallow undefined namespaces. |
|
abstract void |
setNamespaceAware(boolean aware)
Configures this parser to be namespace aware or not. |
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
| Method Detail |
public abstract boolean getAllowUndefinedNamespaces()
public abstract boolean isNamespaceAware()
public abstract boolean isValidating()
public abstract void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException
InputSource.is - Input stream to parse.dh - The SAX DefaultHandler to call.IOException - Thrown when an IO error occurs.IllegalArgumentException - Thrown when InputStream is null.SAXException - Thrown when the underlying parser throws a SAXException.public abstract void parse(InputStream is, DefaultHandler dh) throws SAXException, IOException
InputStream.is - Input stream to parse.dh - The SAX DefaultHandler to call.IOException - Thrown when an IO error occurs.IllegalArgumentException - Thrown when InputStream is null.SAXException - Thrown when the underlying parser throws a SAXException.public abstract void setAllowUndefinedNamespaces(boolean allow)
allow - True to configure this parser to allow undefined namespaces, false otherwise.public abstract void setNamespaceAware(boolean aware)
aware - True to configure this parser to be namespace aware; false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 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.