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
public class ANTLRReaderStream
- extends ANTLRStringStream
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.
Method Summary |
void |
load(java.io.Reader r,
int size,
int readChunkSize)
|
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
READ_BUFFER_SIZE
public static final int READ_BUFFER_SIZE
- See Also:
- Constant Field Values
INITIAL_BUFFER_SIZE
public static final int INITIAL_BUFFER_SIZE
- See Also:
- Constant Field Values
ANTLRReaderStream
public ANTLRReaderStream()
ANTLRReaderStream
public ANTLRReaderStream(java.io.Reader r)
throws java.io.IOException
- Throws:
java.io.IOException
ANTLRReaderStream
public ANTLRReaderStream(java.io.Reader r,
int size)
throws java.io.IOException
- Throws:
java.io.IOException
ANTLRReaderStream
public ANTLRReaderStream(java.io.Reader r,
int size,
int readChunkSize)
throws java.io.IOException
- Throws:
java.io.IOException
load
public void load(java.io.Reader r,
int size,
int readChunkSize)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2013. All Rights Reserved.