Package org.apache.tika.language
Class ProfilingWriter
- java.lang.Object
-
- java.io.Writer
-
- org.apache.tika.language.ProfilingWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
@Deprecated public class ProfilingWriter extends java.io.WriterDeprecated.useLanguageWriterWriter that builds a language profile based on all the written content.- Since:
- Apache Tika 0.5
-
-
Constructor Summary
Constructors Constructor Description ProfilingWriter()Deprecated.ProfilingWriter(LanguageProfile profile)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.voidflush()Deprecated.Ignored.LanguageIdentifiergetLanguage()Deprecated.Returns the language that best matches the current state of the language profile.LanguageProfilegetProfile()Deprecated.Returns the language profile being built by this writer.voidwrite(char[] cbuf, int off, int len)Deprecated.
-
-
-
Constructor Detail
-
ProfilingWriter
public ProfilingWriter(LanguageProfile profile)
Deprecated.
-
ProfilingWriter
public ProfilingWriter()
Deprecated.
-
-
Method Detail
-
getProfile
public LanguageProfile 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
public LanguageIdentifier 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.- Specified by:
writein classjava.io.Writer
-
close
public void close() throws java.io.IOExceptionDeprecated.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein classjava.io.Writer- Throws:
java.io.IOException
-
flush
public void flush()
Deprecated.Ignored.- Specified by:
flushin interfacejava.io.Flushable- Specified by:
flushin classjava.io.Writer
-
-