|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectReader
StringReader
FastStringReader
public class FastStringReader
Used to bypass the slowness of a Lucene StringReader (but only when used
in conjuction with a FastTokenizer
).
Field Summary | |
---|---|
private String |
str
The actual string to read from |
Fields inherited from class Reader |
---|
lock |
Constructor Summary | |
---|---|
FastStringReader(Reader reader)
Wrap a normal reader with a fast string reader |
|
FastStringReader(String s)
Construct a reader for the given string |
Method Summary | |
---|---|
String |
getString()
Get the string back |
static String |
readerToString(Reader reader)
Read all the characters from a Reader, and return the resulting concatenated string. |
Methods inherited from class StringReader |
---|
close, mark, markSupported, read, read, ready, reset, skip |
Methods inherited from class Reader |
---|
read, read |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String str
Constructor Detail |
---|
public FastStringReader(String s)
public FastStringReader(Reader reader)
Method Detail |
---|
public static String readerToString(Reader reader)
public String getString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |