antlr3.ANTLRFileStream Class Reference

CharStream that opens a file to read the data. More...

Inheritance diagram for antlr3.ANTLRFileStream:

Inheritance graph
[legend]
Collaboration diagram for antlr3.ANTLRFileStream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getSourceName
 Deprecated, access o.fileName directly.

Public Attributes

 fileName


Detailed Description

CharStream that opens a file to read the data.

This is a char buffer stream that is loaded from a file all at once when you construct the object.

Definition at line 1477 of file antlr3.py.


Member Function Documentation

def antlr3.ANTLRFileStream.__init__ (   self,
  fileName,
  encoding = None 
)

Parameters:
fileName The path to the file to be opened. The file will be opened with mode 'rb'.
encoding If you set the optional encoding argument, then the data will be decoded on the fly.

Definition at line 1488 of file antlr3.py.

def antlr3.ANTLRFileStream.getSourceName (   self  ) 

Deprecated, access o.fileName directly.

Reimplemented from antlr3.ANTLRStringStream.

Definition at line 1503 of file antlr3.py.


Member Data Documentation

Definition at line 1490 of file antlr3.py.


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

Generated on Mon Nov 29 17:24:27 2010 for ANTLR Python API by  doxygen 1.5.5