public interface SAXParser
InputSource object.
It can either send XML events or create a DOM from
the parsed document.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ROLE |
| Modifier and Type | Method and Description |
|---|---|
void |
parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler consumer)
Parse the
InputSource and send
SAX events to the consumer. |
void |
parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler)
Parse the
InputSource and send
SAX events to the content handler and
the lexical handler. |
void parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler consumer)
throws org.xml.sax.SAXException,
java.io.IOException
InputSource and send
SAX events to the consumer.
Attention: the consumer can implement the
LexicalHandler as well.
The parse should take care of this.org.xml.sax.SAXExceptionjava.io.IOExceptionvoid parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler)
throws org.xml.sax.SAXException,
java.io.IOException
InputSource and send
SAX events to the content handler and
the lexical handler.org.xml.sax.SAXExceptionjava.io.IOException