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.Writer
Deprecated.useLanguageWriter
Writer 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 void
close()
Deprecated.void
flush()
Deprecated.Ignored.LanguageIdentifier
getLanguage()
Deprecated.Returns the language that best matches the current state of the language profile.LanguageProfile
getProfile()
Deprecated.Returns the language profile being built by this writer.void
write(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:
write
in classjava.io.Writer
-
close
public void close() throws java.io.IOException
Deprecated.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Writer
- Throws:
java.io.IOException
-
flush
public void flush()
Deprecated.Ignored.- Specified by:
flush
in interfacejava.io.Flushable
- Specified by:
flush
in classjava.io.Writer
-
-