Antlr.Runtime.ANTLRReaderStream Class Reference

An ANTLRStringStream that caches all the input from a TextReader. It behaves just like a plain ANTLRStringStream. More...

Inheritance diagram for Antlr.Runtime.ANTLRReaderStream:

Inheritance graph
[legend]
Collaboration diagram for Antlr.Runtime.ANTLRReaderStream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ANTLRReaderStream (TextReader reader)
 Initializes a new instance of the ANTLRReaderStream class for the specified TextReader.
 ANTLRReaderStream (TextReader reader, int size)
 Initializes a new instance of the ANTLRReaderStream class for the specified TextReader and initial data buffer size.
 ANTLRReaderStream (TextReader reader, int size, int readChunkSize)
 Initializes a new instance of the ANTLRReaderStream class for the specified TextReader, initial data buffer size and, using a read buffer of the specified size.
virtual void Load (TextReader reader, int size, int readChunkSize)
 Loads and buffers the contents of the specified reader to be used as this ANTLRReaderStream's source.

Static Public Attributes

static readonly int READ_BUFFER_SIZE = 1024
 Default size (in characters) of the buffer used for IO reads.
static readonly int INITIAL_BUFFER_SIZE = 1024
 Initial size (in characters) of the data cache.

Protected Member Functions

 ANTLRReaderStream ()
 Initializes a new instance of the ANTLRReaderStream class.


Detailed Description

An ANTLRStringStream that caches all the input from a TextReader. It behaves just like a plain ANTLRStringStream.

Manages the buffer manually to avoid unnecessary data copying. If you need encoding, use ANTLRInputStream.

Definition at line 48 of file ANTLRReaderStream.cs.


Constructor & Destructor Documentation

Antlr.Runtime.ANTLRReaderStream.ANTLRReaderStream (  )  [protected]

Initializes a new instance of the ANTLRReaderStream class.

Definition at line 61 of file ANTLRReaderStream.cs.

Antlr.Runtime.ANTLRReaderStream.ANTLRReaderStream ( TextReader  reader  ) 

Initializes a new instance of the ANTLRReaderStream class for the specified TextReader.

Definition at line 69 of file ANTLRReaderStream.cs.

Antlr.Runtime.ANTLRReaderStream.ANTLRReaderStream ( TextReader  reader,
int  size 
)

Initializes a new instance of the ANTLRReaderStream class for the specified TextReader and initial data buffer size.

Definition at line 79 of file ANTLRReaderStream.cs.

Antlr.Runtime.ANTLRReaderStream.ANTLRReaderStream ( TextReader  reader,
int  size,
int  readChunkSize 
)

Initializes a new instance of the ANTLRReaderStream class for the specified TextReader, initial data buffer size and, using a read buffer of the specified size.

Definition at line 89 of file ANTLRReaderStream.cs.


Member Function Documentation

virtual void Antlr.Runtime.ANTLRReaderStream.Load ( TextReader  reader,
int  size,
int  readChunkSize 
) [virtual]

Loads and buffers the contents of the specified reader to be used as this ANTLRReaderStream's source.

Definition at line 103 of file ANTLRReaderStream.cs.


Member Data Documentation

Default size (in characters) of the buffer used for IO reads.

Definition at line 51 of file ANTLRReaderStream.cs.

Initial size (in characters) of the data cache.

Definition at line 54 of file ANTLRReaderStream.cs.


The documentation for this class was generated from the following file:

Generated on Wed Oct 1 14:13:23 2008 for ANTLR API by  doxygen 1.5.5