|
|||||||||||
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 | |
Document |
createDocument()
Return a new Document . |
void |
error(SAXParseException spe)
Receive notification of a recoverable error. |
void |
fatalError(SAXParseException spe)
Receive notification of a fatal error. |
void |
initialize()
|
void |
parse(InputSource in,
ContentHandler consumer)
Parse the InputSource and send
SAX events to the consumer.
|
void |
parse(InputSource in,
ContentHandler contentHandler,
LexicalHandler lexicalHandler)
Parse the InputSource and send
SAX events to the content handler and
the lexical handler. |
Document |
parseDocument(InputSource input)
Parses a new Document object from the given InputSource . |
void |
warning(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 Exception
initialize
in interface Initializable
Exception
public void parse(InputSource in, ContentHandler consumer) throws SAXException, 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
SAXException
IOException
public void parse(InputSource in, ContentHandler contentHandler, LexicalHandler lexicalHandler) throws SAXException, IOException
InputSource
and send
SAX events to the content handler and
the lexical handler.
parse
in interface SAXParser
SAXException
IOException
public Document parseDocument(InputSource input) throws SAXException, IOException
InputSource
.
parseDocument
in interface DOMParser
SAXException
IOException
public Document createDocument() throws SAXException
Document
.
createDocument
in interface DOMParser
SAXException
public void error(SAXParseException spe) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException spe) throws SAXException
fatalError
in interface ErrorHandler
SAXException
public void warning(SAXParseException spe) throws SAXException
warning
in interface ErrorHandler
SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |