Class LanguageWriter

    • Method Detail

      • getDetector

        public LanguageDetector getDetector()
        Returns the language detector used by this writer. Note that the returned language detector gets updated whenever new characters are written.
        Returns:
        language detector
      • getLanguage

        public LanguageResult getLanguage()
        Returns the detected language based on text written thus far.
        Returns:
        LanguageResult
      • write

        public void write​(char[] cbuf,
                          int off,
                          int len)
        Specified by:
        write in class Writer
      • reset

        public void reset()