Class ToTextContentHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.tika.sax.ToTextContentHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
ToXMLContentHandler

@Deprecated(since="2026-04-30") public class ToTextContentHandler extends DefaultHandler
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
SAX event handler that writes all character content out to a character stream. No escaping or other transformations are made on the character content.

As of Tika 1.20, this handler ignores content within <script> and <style> tags.

Since:
Apache Tika 0.10