Package org.apache.tika.sax
Class ToHTMLContentHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.tika.sax.ToTextContentHandler
-
- org.apache.tika.sax.ToXMLContentHandler
-
- org.apache.tika.sax.ToHTMLContentHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
public class ToHTMLContentHandler extends ToXMLContentHandler
SAX event handler that serializes the HTML document to a character stream. The incoming SAX events are expected to be well-formed (properly nested, etc.) and valid HTML.- Since:
- Apache Tika 0.10
-
-
Constructor Summary
Constructors Constructor Description ToHTMLContentHandler()
ToHTMLContentHandler(java.io.OutputStream stream, java.lang.String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
void
startDocument()
Writes the XML prefix.-
Methods inherited from class org.apache.tika.sax.ToXMLContentHandler
characters, startElement, startPrefixMapping
-
Methods inherited from class org.apache.tika.sax.ToTextContentHandler
endDocument, ignorableWhitespace, toString
-
-
-
-
Method Detail
-
startDocument
public void startDocument() throws org.xml.sax.SAXException
Description copied from class:ToXMLContentHandler
Writes the XML prefix.- Specified by:
startDocument
in interfaceorg.xml.sax.ContentHandler
- Overrides:
startDocument
in classToXMLContentHandler
- Throws:
org.xml.sax.SAXException
-
endElement
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
- Specified by:
endElement
in interfaceorg.xml.sax.ContentHandler
- Overrides:
endElement
in classToXMLContentHandler
- Throws:
org.xml.sax.SAXException
-
-