org.apache.excalibur.xml.sax
Class JTidyHTMLParser
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.xml.sax.JTidyHTMLParser
- All Implemented Interfaces:
- Initializable, Component, Configurable, LogEnabled, Serviceable, ThreadSafe, SAXParser
public final class JTidyHTMLParser
- extends AbstractLogEnabled
- implements SAXParser, Serviceable, Configurable, Initializable, ThreadSafe, Component
Converter for transforming an input stream contain text/html data
to SAX events.
- Version:
- CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:20 $
- Author:
- Avalon Development Team
Fields inherited from interface org.apache.excalibur.xml.sax.SAXParser |
ROLE |
Method Summary |
void |
configure(Configuration configuration)
|
void |
initialize()
|
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 |
service(ServiceManager serviceManager)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTidyHTMLParser
public JTidyHTMLParser()
service
public void service(ServiceManager serviceManager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
configure
public void configure(Configuration configuration)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
initialize
public void initialize()
throws Exception
- Specified by:
initialize
in interface Initializable
- Throws:
Exception
parse
public void parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler)
throws org.xml.sax.SAXException,
IOException
- Description copied from interface:
SAXParser
- Parse the
InputSource
and send
SAX events to the content handler and
the lexical handler.
- Specified by:
parse
in interface SAXParser
- Throws:
org.xml.sax.SAXException
IOException
parse
public void parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler consumer)
throws org.xml.sax.SAXException,
IOException
- Description copied from interface:
SAXParser
- Parse the
InputSource
and send
SAX events to the consumer.
Attention: the consumer can implement the
LexicalHandler
as well.
The parse should take care of this.
- Specified by:
parse
in interface SAXParser
- Throws:
org.xml.sax.SAXException
IOException
Copyright © 1997-2012 The Apache Software Foundation. All Rights Reserved.