Package org.antlr.runtime
Class ANTLRInputStream
java.lang.Object
org.antlr.runtime.ANTLRStringStream
org.antlr.runtime.ANTLRReaderStream
org.antlr.runtime.ANTLRInputStream
- All Implemented Interfaces:
CharStream,IntStream
A kind of ReaderStream that pulls from an InputStream.
Useful for reading from stdin and specifying file encodings etc...
-
Field Summary
Fields inherited from class org.antlr.runtime.ANTLRReaderStream
INITIAL_BUFFER_SIZE, READ_BUFFER_SIZEFields inherited from class org.antlr.runtime.ANTLRStringStream
charPositionInLine, data, lastMarker, line, markDepth, markers, n, name, pFields inherited from interface org.antlr.runtime.CharStream
EOF -
Constructor Summary
ConstructorsConstructorDescriptionANTLRInputStream(InputStream input) ANTLRInputStream(InputStream input, int size) ANTLRInputStream(InputStream input, int size, int readBufferSize, String encoding) ANTLRInputStream(InputStream input, int size, String encoding) ANTLRInputStream(InputStream input, String encoding) -
Method Summary
Methods inherited from class org.antlr.runtime.ANTLRReaderStream
loadMethods inherited from class org.antlr.runtime.ANTLRStringStream
consume, getCharPositionInLine, getLine, getSourceName, index, LA, LT, mark, release, reset, rewind, rewind, seek, setCharPositionInLine, setLine, size, substring, toString
-
Constructor Details
-
ANTLRInputStream
public ANTLRInputStream() -
ANTLRInputStream
- Throws:
IOException
-
ANTLRInputStream
- Throws:
IOException
-
ANTLRInputStream
- Throws:
IOException
-
ANTLRInputStream
- Throws:
IOException
-
ANTLRInputStream
public ANTLRInputStream(InputStream input, int size, int readBufferSize, String encoding) throws IOException - Throws:
IOException
-