Package schrodinger :: Package application :: Package desmond :: Package antlr3 :: Module streams :: Class ANTLRFileStream
[hide private]
[frames] | no frames]

Class ANTLRFileStream

object --+            
         |            
 IntStream --+        
             |        
    CharStream --+    
                 |    
 ANTLRStringStream --+
                     |
                    ANTLRFileStream

@brief 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.

Instance Methods [hide private]
 
__init__(self, fileName, encoding=None)
@param fileName The path to the file to be opened.
 
getSourceName(self)
Deprecated, access o.fileName directly.

Inherited from ANTLRStringStream: LA, LT, consume, getCharPositionInLine, getLine, index, mark, release, reset, rewind, seek, setCharPositionInLine, setLine, size, substring

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from CharStream: EOF

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fileName, encoding=None)
(Constructor)

 

@param fileName The path to the file to be opened. The file will be
   opened with mode 'rb'.

@param encoding If you set the optional encoding argument, then the
   data will be decoded on the fly.
   

Overrides: object.__init__

getSourceName(self)

 

Deprecated, access o.fileName directly.

Overrides: IntStream.getSourceName