org.apache.avalon.excalibur.xml
Class XercesParser
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.avalon.excalibur.xml.XercesParser
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.xml.sax.ErrorHandler, org.apache.avalon.framework.logger.LogEnabled, Parser, org.apache.avalon.framework.thread.SingleThreaded
- public class XercesParser
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements Parser, org.xml.sax.ErrorHandler, org.apache.avalon.framework.thread.SingleThreaded
- Version:
- CVS $Revision: 1.5 $ $Date: 2001/12/11 09:53:38 $
- Author:
- Pierpaolo Fumagalli
(Apache Software Foundation, Exoffice Technologies)
Fields inherited from interface org.apache.avalon.excalibur.xml.Parser |
ROLE |
Method Summary |
void |
error(org.xml.sax.SAXParseException e)
Receive notification of a recoverable error. |
void |
fatalError(org.xml.sax.SAXParseException e)
Receive notification of a fatal error. |
void |
parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler consumer)
Parse the InputSource and send
SAX events to the consumer. |
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 e)
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 |
XercesParser
public XercesParser()
throws org.xml.sax.SAXException
parse
public void parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler consumer)
throws org.xml.sax.SAXException,
java.io.IOException
- Description copied from interface:
Parser
- Parse the
InputSource
and send
SAX events to the consumer.
Attention: the consumer can either be an XMLConsumer
or implement the LexicalHandler
as well.
The parse should take care of this.
- Specified by:
parse
in interface Parser
parseDocument
public org.w3c.dom.Document parseDocument(org.xml.sax.InputSource input)
throws org.xml.sax.SAXException,
java.io.IOException
- Parses a new Document object from the given InputSource.
- Specified by:
parseDocument
in interface Parser
error
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Receive notification of a recoverable error.
- Specified by:
error
in interface org.xml.sax.ErrorHandler
fatalError
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Receive notification of a fatal error.
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
warning
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
- Receive notification of a warning.
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.