Package org.apache.tika.language.detect
Class LanguageWriter
java.lang.Object
java.io.Writer
org.apache.tika.language.detect.LanguageWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Writer that builds a language profile based on all the written content.
- Since:
- Apache Tika 0.10
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
LanguageWriter
-
-
Method Details
-
getDetector
Returns the language detector used by this writer. Note that the returned language detector gets updated whenever new characters are written.- Returns:
- language detector
-
getLanguage
Returns the detected language based on text written thus far.- Returns:
- LanguageResult
-
write
public void write(char[] cbuf, int off, int len) -
close
Ignored.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
public void flush()Ignored. -
reset
public void reset()
-