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
| Modifier and Type | Field and Description |
|---|---|
private java.util.Properties |
m_properties |
private DOMSerializer |
m_serializer |
private org.w3c.tidy.Tidy |
m_tidy |
| Constructor and Description |
|---|
JTidyHTMLParser() |
| Modifier and Type | Method and Description |
|---|---|
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) |
private DOMSerializer m_serializer
private org.w3c.tidy.Tidy m_tidy
private java.util.Properties m_properties
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionpublic void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablejava.lang.Exceptionpublic 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
SAXParserInputSource and send
SAX events to the content handler and
the lexical handler.public void parse(org.xml.sax.InputSource in,
org.xml.sax.ContentHandler consumer)
throws org.xml.sax.SAXException,
java.io.IOException
SAXParserInputSource and send
SAX events to the consumer.
Attention: the consumer can implement the
LexicalHandler as well.
The parse should take care of this.