- java.lang.Object
-
- java.io.Reader
-
- org.apache.lucene.analysis.ReusableStringReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
final class ReusableStringReader extends java.io.Reader
Internal class to enable reuse of the string reader byAnalyzer.tokenStream(String,String)
-
-
Constructor Summary
Constructors Constructor Description ReusableStringReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read()
int
read(char[] c, int off, int len)
(package private) void
setValue(java.lang.String s)
-
-
-
Method Detail
-
setValue
void setValue(java.lang.String s)
-
read
public int read()
- Overrides:
read
in classjava.io.Reader
-
read
public int read(char[] c, int off, int len)
- Specified by:
read
in classjava.io.Reader
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Reader
-
-