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.
SAX content handler that builds a language profile based on all the
received character content.
- Since:
- Apache Tika 0.5
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.ProfilingHandler(LanguageProfile profile) Deprecated.ProfilingHandler(ProfilingWriter writer) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the language that best matches the current state of the language profile.Deprecated.Returns the language profile being built by this content handler.Methods inherited from class org.apache.tika.sax.WriteOutContentHandler
characters, ignorableWhitespace, isWriteLimitReachedMethods inherited from class org.apache.tika.sax.ContentHandlerDecorator
endDocument, endElement, endPrefixMapping, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toStringMethods inherited from class org.xml.sax.helpers.DefaultHandler
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
ProfilingHandler
Deprecated. -
ProfilingHandler
Deprecated. -
ProfilingHandler
public ProfilingHandler()Deprecated.
-
-
Method Details
-
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
Deprecated.Returns the language that best matches the current state of the language profile.- Returns:
- language that best matches the current profile
-
LanguageHandler