Class ReusableStringReader

java.lang.Object
java.io.Reader
org.apache.lucene.analysis.ReusableStringReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

final class ReusableStringReader extends Reader
Internal class to enable reuse of the string reader by Analyzer.tokenStream(String,String)
  • Field Details

    • pos

      private int pos
    • size

      private int size
    • s

      private String s
  • Constructor Details

    • ReusableStringReader

      ReusableStringReader()
  • Method Details

    • setValue

      void setValue(String s)
    • read

      public int read()
      Overrides:
      read in class Reader
    • read

      public int read(char[] c, int off, int len)
      Specified by:
      read in class Reader
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class Reader