| java.lang.Object javax.xml.parsers.SAXParser
All known Subclasses: org.apache.xerces.jaxp.SAXParserImpl, com.rimfaxe.xml.xmlreader.SAXParserImpl,
SAXParser | abstract public class SAXParser (Code) | | Wraps a SAX2 (or SAX1) parser.
Note that parsing with methods on this interface requires use of one
of the optional SAX base classes. It's usually preferable to use the
SAX parser APIs directly. SAX gives much more flexibility about how
application classes are organized, and about how the document entity is
packaged for delivery to the parser. And JAXP doesn't otherwise provide
access to the SAX2 extension handlers for lexical or declaration events.
author: Andrew Selkirk author: David Brownell version: 1.0 |
Constructor Summary | |
protected | SAXParser() Only subclasses may use the constructor. |
Method Summary | |
abstract public Parser | getParser() Get a (deprecated) SAX1 driver for the underlying parser. | abstract public Object | getProperty(String id) | abstract public XMLReader | getXMLReader() Get a SAX2 driver for the underlying parser. | abstract public boolean | isNamespaceAware() | abstract public boolean | isValidating() | public void | parse(InputStream stream, HandlerBase handler) Parse using (deprecated) SAX1 style handlers,
and a byte stream (with no URI). | public void | parse(InputStream stream, HandlerBase handler, String systemID) Parse using (deprecated) SAX1 style handlers,
and a byte stream with a specified URI. | public void | parse(InputStream stream, DefaultHandler def) Parse using SAX2 style handlers,
and a byte stream (with no URI). | public void | parse(InputStream stream, DefaultHandler def, String systemID) Parse using SAX2 style handlers,
and a byte stream with a specified URI. | public void | parse(String uri, HandlerBase handler) Parse using (deprecated) SAX1 style handlers,
and a URI for the document entity. | public void | parse(String uri, DefaultHandler def) Parse using SAX2 style handlers,
and a URI for the document entity. | public void | parse(File file, HandlerBase handler) Parse using (deprecated) SAX1 style handlers,
turning a file name into the document URI. | public void | parse(File file, DefaultHandler def) Parse using SAX2 style handlers,
turning a file name into the document URI. | public void | parse(InputSource source, HandlerBase handler) Parse using (deprecated) SAX1 style handlers. | public void | parse(InputSource source, DefaultHandler def) Parse using SAX2 style handlers. | abstract public void | setProperty(String id, Object value) |
SAXParser | protected SAXParser()(Code) | | Only subclasses may use the constructor.
|
getParser | abstract public Parser getParser() throws SAXException(Code) | | Get a (deprecated) SAX1 driver for the underlying parser.
|
isNamespaceAware | abstract public boolean isNamespaceAware()(Code) | | |
isValidating | abstract public boolean isValidating()(Code) | | |
parse | public void parse(InputStream stream, HandlerBase handler) throws SAXException, IOException(Code) | | Parse using (deprecated) SAX1 style handlers,
and a byte stream (with no URI).
Avoid using this API, since relative URIs in the document need
to be resolved against the document entity's URI, and good
diagnostics also need that URI.
|
parse | public void parse(InputStream stream, DefaultHandler def) throws SAXException, IOException(Code) | | Parse using SAX2 style handlers,
and a byte stream (with no URI).
Avoid using this API, since relative URIs in the document need
to be resolved against the document entity's URI, and good
diagnostics also need that URI.
|
|
|