java.lang.Object | |
↳ | javax.xml.parsers.SAXParser |
Provides a wrapper around a SAX XMLReader
. This abstract
class only defines the interface, whereas the SAXParserFactory
class
is used to obtain instances of concrete subclasses.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Do-nothing constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Queries the underlying SAX
Parser object. | |||||||||||
Queries a property of the underlying SAX
XMLReader . | |||||||||||
Queries the underlying SAX XMLReader object.
| |||||||||||
Reflects whether this
SAXParser is namespace-aware. | |||||||||||
Reflects whether this
SAXParser is validating. | |||||||||||
Reflects whether this
SAXParser is XInclude-aware. | |||||||||||
Parses the given XML InputStream using the given SAX event handler.
| |||||||||||
Parses the given XML InputStream using the given SAX event handler.
| |||||||||||
Parses the contents of the given URI using the given SAX event handler.
| |||||||||||
Parses the given XML InputStream using the given SAX event handler and
system ID.
| |||||||||||
Parses the given XML InputStream using the given SAX event handler and
system ID.
| |||||||||||
Parses the given SAX
InputSource using the given SAX event
handler. | |||||||||||
Parses the given SAX
InputSource using the given SAX event
handler. | |||||||||||
Parses the contents of the given URI using the given SAX event handler.
| |||||||||||
Parses the given XML file using the given SAX event handler.
| |||||||||||
Parses the given XML file using the given SAX event handler.
| |||||||||||
Resets the
SAXParser to the same state is was in after its
creation. | |||||||||||
Sets a property of the underlying SAX
XMLReader . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Do-nothing constructor. Prevents instantiation. To be overridden by concrete subclasses.
Queries the underlying SAX Parser
object.
Parser
.SAXException | if a problem occurs. |
---|
Queries a property of the underlying SAX XMLReader
.
name | the name of the property. |
---|
SAXNotRecognizedException | if the property is not known to the
underlying SAX XMLReader . |
---|---|
SAXNotSupportedException | if the property is known, but not
supported by the underlying SAX XMLReader . |
Queries the underlying SAX XMLReader object.
SAXException | if a problem occurs. |
---|
Reflects whether this SAXParser
is namespace-aware.
true
if the SAXParser
is namespace-aware, or
false
otherwise.Reflects whether this SAXParser
is validating.
true
if the SAXParser
is validating, or false
otherwise.Reflects whether this SAXParser
is XInclude-aware.
true
if the SAXParser
is XInclude-aware, or
false
otherwise.UnsupportedOperationException | if the underlying implementation doesn't know about XInclude at all (backwards compatibility). |
---|
Parses the given XML InputStream using the given SAX event handler.
stream | the InputStream containing the XML document. |
---|---|
handler | the SAX handler. |
SAXException | if a problem occurs during SAX parsing. |
---|---|
IOException | if a general IO problem occurs. |
Parses the given XML InputStream using the given SAX event handler.
stream | the InputStream containing the XML document. |
---|---|
handler | the SAX handler. |
SAXException | if a problem occurs during SAX parsing. |
---|---|
IOException | if a general IO problem occurs. |
Parses the contents of the given URI using the given SAX event handler.
uri | the URI pointing to the XML document. |
---|---|
handler | the SAX handler. |
SAXException | if a problem occurs during SAX parsing. |
---|---|
IOException | if a general IO problem occurs. |
Parses the given XML InputStream using the given SAX event handler and system ID.
stream | the InputStream containing the XML document. |
---|---|
handler | the SAX handler. |
systemId | the system ID. |
SAXException | if a problem occurs during SAX parsing. |
---|---|
IOException | if a general IO problem occurs. |
Parses the given XML InputStream using the given SAX event handler and system ID.
stream | the InputStream containing the XML document. |
---|---|
handler | the SAX handler. |
systemId | the system ID. |
SAXException | if a problem occurs during SAX parsing. |
---|---|
IOException | if a general IO problem occurs. |
Parses the given SAX InputSource
using the given SAX event
handler.
source | the SAX InputSource containing the XML document. |
---|---|
handler | the SAX handler. |
SAXException | if a problem occurs during SAX parsing. |
---|---|
IOException | if a general IO problem occurs. |
Parses the given SAX InputSource
using the given SAX event
handler.
source | the SAX InputSource containing the XML document. |
---|---|
handler | the SAX handler. |
SAXException | if a problem occurs during SAX parsing. |
---|---|
IOException | if a general IO problem occurs. |
Parses the contents of the given URI using the given SAX event handler.
uri | the URI pointing to the XML document. |
---|---|
handler | the SAX handler. |
SAXException | if a problem occurs during SAX parsing. |
---|---|
IOException | if a general IO problem occurs. |
Parses the given XML file using the given SAX event handler.
file | the file containing the XML document. |
---|---|
handler | the SAX handler. |
SAXException | if a problem occurs during SAX parsing. |
---|---|
IOException | if a general IO problem occurs. |
Parses the given XML file using the given SAX event handler.
file | the file containing the XML document. |
---|---|
handler | the SAX handler. |
SAXException | if a problem occurs during SAX parsing. |
---|---|
IOException | if a general IO problem occurs. |
Resets the SAXParser
to the same state is was in after its
creation.
Sets a property of the underlying SAX XMLReader
.
name | the name of the property. |
---|---|
value | the value of the property. |
SAXNotRecognizedException | if the property is not known to the
underlying SAX XMLReader . |
---|---|
SAXNotSupportedException | if the property is known, but not
supported by the underlying SAX XMLReader . |