javax.xml.parsers
public abstract class SAXParser extends Object
Constructor Summary | |
---|---|
protected | SAXParser() |
Method Summary | |
---|---|
abstract Parser | getParser()
Returns the underlying SAX1 parser. |
abstract Object | getProperty(String name)
Returns the value of the specified SAX2 parser property. |
Schema | getSchema()
Returns the schema in use by this parser. |
abstract XMLReader | getXMLReader()
Returns the underlying SAX2 parser. |
abstract boolean | isNamespaceAware()
Indicates whether this parser is XML Namespace aware. |
abstract boolean | isValidating()
Indicates whether this parser will validate its input. |
boolean | isXIncludeAware()
Indicates whether this parser is XInclude-aware. |
void | parse(InputStream is, HandlerBase hb)
Parse the specifed input stream, reporting SAX1 events to the given
handler.
|
void | parse(InputStream is, HandlerBase hb, String systemId)
Parse the specified input stream, reporting SAX1 events to the given
handler.
|
void | parse(InputStream is, DefaultHandler dh)
Parse the specified input stream, reporting SAX2 events to the given
handler.
|
void | parse(InputStream is, DefaultHandler dh, String systemId)
Parse the specified input stream, reporting SAX2 events to the given
handler. |
void | parse(String uri, HandlerBase hb)
Parse the content of the specified URI, reporting SAX1 events to the
given handler.
|
void | parse(String uri, DefaultHandler dh)
Parse the content of the specified URI, reporting SAX2 events to the
given handler. |
void | parse(File f, HandlerBase hb)
Parse the content of the specified file, reporting SAX1 events to the
given handler.
|
void | parse(File f, DefaultHandler dh)
Parse the content of the specified file, reporting SAX2 events to the
given handler. |
void | parse(InputSource is, HandlerBase hb)
Parse the specified input source, reporting SAX1 events to the
given handler.
|
void | parse(InputSource is, DefaultHandler dh)
Parse the specified input source, reporting SAX2 events to the
given handler. |
void | reset()
Resets this parser to its original configuration. |
abstract void | setProperty(String name, Object value)
Sets the specified SAX2 parser property. |
Parameters: name the name of the property
Since: 1.3
Since: 1.1
Since: 1.3
Parameters: is an XML input stream hb the SAX1 handler
Throws: IllegalArgumentException if the input stream is null
See Also: parse
Parameters: is an XML input stream hb the SAX1 handler systemId the system ID of the XML document
Throws: IllegalArgumentException if the input stream is null
See Also: parse
Parameters: is an XML input stream dh the SAX2 handler
Throws: IllegalArgumentException if the input stream is null
Parameters: is an XML input stream dh the SAX2 handler systemId the system ID of the XML document
Throws: IllegalArgumentException if the input stream is null
Parameters: uri an XML system ID hb the SAX1 handler
Throws: IllegalArgumentException if the URI is null
See Also: parse
Parameters: uri an XML system ID dh the SAX2 handler
Throws: IllegalArgumentException if the URI is null
Parameters: f an XML file hb the SAX1 handler
Throws: IllegalArgumentException if the file is null
See Also: parse
Parameters: f an XML file dh the SAX2 handler
Throws: IllegalArgumentException if the file is null
Parameters: is the SAX input source hb the SAX1 handler
Throws: IllegalArgumentException if the input source is null
See Also: parse
Parameters: is an XML file dh the SAX2 handler
Throws: IllegalArgumentException if the input source is null
Since: 1.3
Parameters: name the name of the property value the value of the property