#NEWLINE# def __init__( self , file , encoding = None ) : #NEWLINE# #INDENT# '\n        @param file A file-like object holding your input. Only the read()\n           method must be implemented.\n\n        @param encoding If you set the optional encoding argument, then the\n           data will be decoded on the fly.\n           \n        ' #NEWLINE# if ( encoding is not None ) : #NEWLINE# #INDENT# reader = codecs . lookup ( reader ) [ 2 ] #NEWLINE# file = reader ( file ) #NEWLINE# #UNINDENT# data = file . read ( ) #NEWLINE# ANTLRStringStream . __init__ ( self , data )