antlr3.ANTLRInputStream Class Reference
CharStream that reads data from a file-like object.
More...
List of all members.
Detailed Description
CharStream that reads data from a file-like object.
This is a char buffer stream that is loaded from a file like object all at once when you construct the object.
All input is consumed from the file, but it is not closed.
Definition at line 1517 of file antlr3.py.
Member Function Documentation
def antlr3.ANTLRInputStream.__init__ |
( |
|
self, |
|
|
|
file, |
|
|
|
encoding = None | |
|
) |
| | |
- Parameters:
-
| file | A file-like object holding your input. Only the read() method must be implemented. |
| encoding | If you set the optional encoding argument, then the data will be decoded on the fly. |
Definition at line 1528 of file antlr3.py.
The documentation for this class was generated from the following file: