Package org.apache.tika.language
Class ProfilingHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.tika.sax.ContentHandlerDecorator
-
- org.apache.tika.sax.WriteOutContentHandler
-
- org.apache.tika.language.ProfilingHandler
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
@Deprecated public class ProfilingHandler extends WriteOutContentHandler
Deprecated.useLanguageHandler
SAX content handler that builds a language profile based on all the received character content.- Since:
- Apache Tika 0.5
-
-
Constructor Summary
Constructors Constructor Description ProfilingHandler()
Deprecated.ProfilingHandler(LanguageProfile profile)
Deprecated.ProfilingHandler(ProfilingWriter writer)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LanguageIdentifier
getLanguage()
Deprecated.Returns the language that best matches the current state of the language profile.LanguageProfile
getProfile()
Deprecated.Returns the language profile being built by this content handler.-
Methods inherited from class org.apache.tika.sax.WriteOutContentHandler
characters, ignorableWhitespace, isWriteLimitReached
-
Methods inherited from class org.apache.tika.sax.ContentHandlerDecorator
endDocument, endElement, endPrefixMapping, handleException, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toString
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning
-
-
-
-
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 thegetLanguage()
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
-
-