|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.tika.sax.WriteOutContentHandler
org.apache.tika.language.ProfilingHandler
public class ProfilingHandler
SAX content handler that builds a language profile based on all the received character content.
| Constructor Summary | |
|---|---|
ProfilingHandler()
|
|
ProfilingHandler(LanguageProfile profile)
|
|
ProfilingHandler(ProfilingWriter writer)
|
|
| Method Summary | |
|---|---|
LanguageIdentifier |
getLanguage()
Returns the language that best matches the current state of the language profile. |
LanguageProfile |
getProfile()
Returns the language profile being built by this content handler. |
| Methods inherited from class org.apache.tika.sax.WriteOutContentHandler |
|---|
characters, endDocument, ignorableWhitespace, toString |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endElement, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProfilingHandler(ProfilingWriter writer)
public ProfilingHandler(LanguageProfile profile)
public ProfilingHandler()
| Method Detail |
|---|
public LanguageProfile getProfile()
getLanguage()
method to get the language that best matches the current state of
the profile.
public LanguageIdentifier getLanguage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||