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:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, SAXParser, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.thread.ThreadSafe
- public final class JTidyHTMLParser
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements SAXParser, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.component.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(org.apache.avalon.framework.configuration.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(org.apache.avalon.framework.service.ServiceManager serviceManager)
|
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 |
JTidyHTMLParser
public JTidyHTMLParser()
service
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
throws org.apache.avalon.framework.service.ServiceException
- Specified by:
service
in interface org.apache.avalon.framework.service.Serviceable
- Throws:
org.apache.avalon.framework.service.ServiceException
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
initialize
public void initialize()
throws java.lang.Exception
- Specified by:
initialize
in interface org.apache.avalon.framework.activity.Initializable
- Throws:
java.lang.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,
java.io.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
java.io.IOException
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:
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
java.io.IOException
Copyright © 1997-2007 Apache Software Foundation. All Rights Reserved.