|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.xml.parsers.SAXParser
public abstract class 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 |
isNamespaceAware()
Determines whether this parser understands namespaces. |
|
abstract boolean |
isValidating()
Determines whether this parser validates documents. |
|
abstract void |
parse(InputStream is,
DefaultHandler dh)
Parses the given InputStream. |
|
abstract void |
parse(InputSource is,
DefaultHandler dh)
Parses the given InputSource. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SAXParser()
| Method Detail |
|---|
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 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 boolean isNamespaceAware()
public abstract boolean isValidating()
|
|||||||||
| 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