Package org.apache.tika.language
Class ProfilingWriter
java.lang.Object
java.io.Writer
org.apache.tika.language.ProfilingWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Deprecated.
Writer that builds a language profile based on all the written content.
- Since:
- Apache Tika 0.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.voidflush()Deprecated.Ignored.Deprecated.Returns the language that best matches the current state of the language profile.Deprecated.Returns the language profile being built by this writer.voidwrite(char[] cbuf, int off, int len) Deprecated.
-
Constructor Details
-
ProfilingWriter
Deprecated. -
ProfilingWriter
public ProfilingWriter()Deprecated.
-
-
Method Details
-
getProfile
Deprecated.Returns the language profile being built by this writer. Note that the returned profile gets updated whenever new characters are written. 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
-
write
public void write(char[] cbuf, int off, int len) Deprecated. -
close
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flush
public void flush()Deprecated.Ignored.
-
LanguageWriter