Class ProfilingHandler

All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

@Deprecated public class ProfilingHandler extends WriteOutContentHandler
Deprecated.
SAX content handler that builds a language profile based on all the received character content.
Since:
Apache Tika 0.5
  • Constructor Details

    • ProfilingHandler

      public ProfilingHandler(ProfilingWriter writer)
      Deprecated.
    • ProfilingHandler

      public ProfilingHandler(LanguageProfile profile)
      Deprecated.
    • ProfilingHandler

      public ProfilingHandler()
      Deprecated.
  • Method Details

    • getProfile

      public LanguageProfile getProfile()
      Deprecated.
      Returns the language profile being built by this content handler. Note that the returned profile gets updated whenever new SAX events are received by this content handler. Use the getLanguage() method to get the language that best matches the current state of the profile.
      Returns:
      language profile
    • getLanguage

      public LanguageIdentifier getLanguage()
      Deprecated.
      Returns the language that best matches the current state of the language profile.
      Returns:
      language that best matches the current profile