org.apache.excalibur.xml.sax
Class JTidyHTMLParser

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

Field Summary
 
Fields inherited from interface org.apache.excalibur.xml.sax.SAXParser
ROLE
 
Constructor Summary
JTidyHTMLParser()
           
 
Method Summary
 void configure(Configuration configuration)
          Pass the Configuration to the Configurable class.
 void initialize()
          Initialize the component.
 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)
          Pass the ServiceManager to the Serviceable.
 
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
Description copied from interface: Serviceable
Pass the ServiceManager to the Serviceable. The Serviceable implementation should use the specified ServiceManager to acquire the components it needs for execution.

Specified by:
service in interface Serviceable
Parameters:
serviceManager - The ServiceManager which this Serviceable uses. Must not be null.
Throws:
ServiceException - if an error occurs

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Description copied from interface: Configurable
Pass the Configuration to the Configurable class.

Specified by:
configure in interface Configurable
Parameters:
configuration - the class configurations. Must not be null.
Throws:
ConfigurationException - if an error occurs

initialize

public void initialize()
                throws java.lang.Exception
Description copied from interface: Initializable
Initialize the component. Initialization includes allocating any resources required throughout the component's lifecycle.

Specified by:
initialize in interface Initializable
Throws:
java.lang.Exception - if an error occurs

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-2005 The Apache Software Foundation. All Rights Reserved.