Top Description Fields Constructors Methods
org.antlr.runtime

public Class ANTLRReaderStream

extends ANTLRStringStream
Class Inheritance
Known Direct Subclasses
org.antlr.runtime.ANTLRInputStream
Imports
java.io.*

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

Modifier and TypeField and Description
public static final int
public static final int
Inherited from org.antlr.runtime.ANTLRStringStream:
charPositionInLinedatalastMarkerlinemarkDepthmarkersnnamep

Constructor Summary

AccessConstructor and Description
public
public
public
public
ANTLRReaderStream(Reader r, int size, int readChunkSize)

Method Summary

Modifier and TypeMethod and Description
public void
load(Reader r, int size, int readChunkSize)

Inherited from org.antlr.runtime.ANTLRStringStream:
consumegetCharPositionInLinegetLinegetSourceNameindexLALTmarkreleaseresetrewindrewindseeksetCharPositionInLinesetLinesizesubstringtoString

Field Detail

INITIAL_BUFFER_SIZEback to summary
public static final int INITIAL_BUFFER_SIZE
READ_BUFFER_SIZEback to summary
public static final int READ_BUFFER_SIZE

Constructor Detail

ANTLRReaderStreamback to summary
public ANTLRReaderStream()
ANTLRReaderStreamback to summary
public ANTLRReaderStream(Reader r) throws IOException
ANTLRReaderStreamback to summary
public ANTLRReaderStream(Reader r, int size) throws IOException
ANTLRReaderStreamback to summary
public ANTLRReaderStream(Reader r, int size, int readChunkSize) throws IOException

Method Detail

loadback to summary
public void load(Reader r, int size, int readChunkSize) throws IOException