Class ProfilingHandler

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.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 Detail

      • ProfilingHandler

        public ProfilingHandler​(ProfilingWriter writer)
        Deprecated.
      • ProfilingHandler

        public ProfilingHandler​(LanguageProfile profile)
        Deprecated.
      • ProfilingHandler

        public ProfilingHandler()
        Deprecated.
    • Method Detail

      • 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