org.apache.excalibur.xml.sax
Class JTidyHTMLParser

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by 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

Field Summary
 
Fields inherited from interface org.apache.excalibur.xml.sax.SAXParser
ROLE
 
Constructor Summary
JTidyHTMLParser()
           
 
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 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

JTidyHTMLParser

public JTidyHTMLParser()
Method Detail

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 java.lang.Exception
Specified by:
initialize in interface 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-2011 Apache Software Foundation. All Rights Reserved.