Class 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.
    Writer that builds a language profile based on all the written content.
    Since:
    Apache Tika 0.5
    • 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.
       
      • Methods inherited from class java.io.Writer

        append, append, append, nullWriter, write, write, write, write
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 the getLanguage() 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 class java.io.Writer
      • close

        public void close()
                   throws java.io.IOException
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.io.Writer
        Throws:
        java.io.IOException
      • flush

        public void flush()
        Deprecated.
        Ignored.
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in class java.io.Writer