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 public class ProfilingWriter extends 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.
-
close
public void close() throws IOException
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
-