Package org.antlr.runtime
Class ANTLRReaderStream
java.lang.Object
org.antlr.runtime.ANTLRStringStream
org.antlr.runtime.ANTLRReaderStream
- All Implemented Interfaces:
CharStream
,IntStream
- Direct Known Subclasses:
ANTLRInputStream
Vacuum all input from a Reader and then treat it like a StringStream.
Manage the buffer manually to avoid unnecessary data copying.
If you need encoding, use ANTLRInputStream.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
Fields inherited from class org.antlr.runtime.ANTLRStringStream
charPositionInLine, data, lastMarker, line, markDepth, markers, n, name, p
Fields inherited from interface org.antlr.runtime.CharStream
EOF
-
Constructor Summary
ConstructorsConstructorDescriptionANTLRReaderStream
(Reader r, int size) ANTLRReaderStream
(Reader r, int size, int readChunkSize) -
Method Summary
Methods inherited from class org.antlr.runtime.ANTLRStringStream
consume, getCharPositionInLine, getLine, getSourceName, index, LA, LT, mark, release, reset, rewind, rewind, seek, setCharPositionInLine, setLine, size, substring
-
Field Details
-
READ_BUFFER_SIZE
public static final int READ_BUFFER_SIZE- See Also:
-
INITIAL_BUFFER_SIZE
public static final int INITIAL_BUFFER_SIZE- See Also:
-
-
Constructor Details
-
ANTLRReaderStream
public ANTLRReaderStream() -
ANTLRReaderStream
- Throws:
IOException
-
ANTLRReaderStream
- Throws:
IOException
-
ANTLRReaderStream
- Throws:
IOException
-
-
Method Details
-
load
- Throws:
IOException
-