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:
- Component, Configurable, Initializable, LogEnabled, SAXParser, Serviceable, ThreadSafe
- 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 |
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
ServiceException
configure
public void configure(Configuration configuration)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
ConfigurationException
initialize
public void initialize()
throws Exception
- Specified by:
initialize
in interface Initializable
Exception
parse
public void parse(InputSource in,
ContentHandler contentHandler,
LexicalHandler lexicalHandler)
throws 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
SAXException
IOException
parse
public void parse(InputSource in,
ContentHandler consumer)
throws SAXException,
IOException
- 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
SAXException
IOException
Copyright © 1997-2004 The Apache Software Foundation. All Rights Reserved.