Class LanguageHandler

All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

@Deprecated(since="2026-04-30") public class LanguageHandler extends WriteOutContentHandler
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
SAX content handler that updates a language detector based on all the received character content.
Since:
Apache Tika 0.10
  • Constructor Details

  • Method Details

    • getDetector

      public LanguageDetector getDetector()
      Deprecated.
      Returns the language detector used by this content handler. Note that the returned detector gets updated whenever new SAX events are received by this content handler.
      Returns:
      language detector
    • getLanguage

      public LanguageResult getLanguage()
      Deprecated.
      Returns the detected language based on text handled thus far.
      Returns:
      LanguageResult