|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.excalibur.xml.impl.XercesParser
Field Summary |
Fields inherited from interface org.apache.excalibur.xml.sax.SAXParser |
ROLE |
Fields inherited from interface org.apache.excalibur.xml.dom.DOMParser |
ROLE |
Constructor Summary | |
XercesParser()
|
Method Summary | |
org.w3c.dom.Document |
createDocument()
Return a new Document . |
void |
error(org.xml.sax.SAXParseException spe)
Receive notification of a recoverable error. |
void |
fatalError(org.xml.sax.SAXParseException spe)
Receive notification of a fatal error. |
void |
initialize()
Initialize the component. |
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. |
org.w3c.dom.Document |
parseDocument(org.xml.sax.InputSource input)
Parses a new Document object from the given InputSource . |
void |
warning(org.xml.sax.SAXParseException spe)
Receive notification of a warning. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XercesParser()
Method Detail |
public void initialize() throws java.lang.Exception
Initializable
initialize
in interface Initializable
java.lang.Exception
- if an error occurspublic void parse(org.xml.sax.InputSource in, org.xml.sax.ContentHandler consumer) throws org.xml.sax.SAXException, java.io.IOException
SAXParser
InputSource
and send
SAX events to the consumer.
Attention: the consumer can implement the
LexicalHandler
as well.
The parse should take care of this.
parse
in interface SAXParser
org.xml.sax.SAXException
java.io.IOException
public void 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.
parse
in interface SAXParser
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document parseDocument(org.xml.sax.InputSource input) throws org.xml.sax.SAXException, java.io.IOException
InputSource
.
parseDocument
in interface DOMParser
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document createDocument() throws org.xml.sax.SAXException
Document
.
createDocument
in interface DOMParser
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException spe) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |