public class LanguageHandler extends WriteOutContentHandler
Constructor and Description |
---|
LanguageHandler() |
LanguageHandler(LanguageDetector detector) |
LanguageHandler(LanguageWriter writer) |
Modifier and Type | Method and Description |
---|---|
LanguageDetector |
getDetector()
Returns the language detector used by this content handler.
|
LanguageResult |
getLanguage()
Returns the detected language based on text handled thus far.
|
characters, ignorableWhitespace, isWriteLimitReached
endDocument, endElement, endPrefixMapping, handleException, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toString
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning
public LanguageHandler() throws IOException
IOException
public LanguageHandler(LanguageWriter writer)
public LanguageHandler(LanguageDetector detector)
public LanguageDetector getDetector()
public LanguageResult getLanguage()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.