org.antlr.runtime.ANTLRFileStream Class Reference

Inheritance diagram for org.antlr.runtime.ANTLRFileStream:

Inheritance graph
[legend]
Collaboration diagram for org.antlr.runtime.ANTLRFileStream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ANTLRFileStream (String fileName) throws IOException
 ANTLRFileStream (String fileName, String encoding) throws IOException
void load (String fileName, String encoding) throws IOException
String getSourceName ()

Protected Attributes

String fileName


Detailed Description

This is a char buffer stream that is loaded from a file all at once when you construct the object. This looks very much like an ANTLReader or ANTLRInputStream, but it's a special case since we know the exact size of the object to load. We can avoid lots of data copying.

Definition at line 38 of file ANTLRFileStream.java.


Constructor & Destructor Documentation

org.antlr.runtime.ANTLRFileStream.ANTLRFileStream ( String  fileName  )  throws IOException

Definition at line 41 of file ANTLRFileStream.java.

org.antlr.runtime.ANTLRFileStream.ANTLRFileStream ( String  fileName,
String  encoding 
) throws IOException

Definition at line 45 of file ANTLRFileStream.java.


Member Function Documentation

void org.antlr.runtime.ANTLRFileStream.load ( String  fileName,
String  encoding 
) throws IOException

Definition at line 50 of file ANTLRFileStream.java.

String org.antlr.runtime.ANTLRFileStream.getSourceName (  ) 

Where are you getting symbols from? Normally, implementations will pass the buck all the way to the lexer who can ask its input stream for the file name or whatever.

Reimplemented from org.antlr.runtime.ANTLRStringStream.

Definition at line 75 of file ANTLRFileStream.java.


Member Data Documentation

Definition at line 39 of file ANTLRFileStream.java.


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

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