C# Class Antlr4.Runtime.AntlrFileStream

This is an ANTLRInputStream that is loaded from a file all at once when you construct the object.
This is an ANTLRInputStream that is loaded from a file all at once when you construct the object. This is a special case since we know the exact size of the object to load. We can avoid lots of data copying.
Inheritance: AntlrInputStream
Mostra file Open project: antlr/antlr4 Class Usage Examples

Protected Properties

Property Type Description
fileName string

Public Methods

Method Description
AntlrFileStream ( string fileName ) : Antlr4.Runtime.Sharpen
AntlrFileStream ( string fileName, System.Text.Encoding encoding ) : Antlr4.Runtime.Sharpen
Load ( string fileName, System.Text.Encoding encoding ) : void

Private Methods

Method Description
ReadAllText ( string path ) : string
ReadAllText ( string path, System.Text.Encoding encoding ) : string

Method Details

AntlrFileStream() public method

public AntlrFileStream ( string fileName ) : Antlr4.Runtime.Sharpen
fileName string
return Antlr4.Runtime.Sharpen

AntlrFileStream() public method

public AntlrFileStream ( string fileName, System.Text.Encoding encoding ) : Antlr4.Runtime.Sharpen
fileName string
encoding System.Text.Encoding
return Antlr4.Runtime.Sharpen

Load() public method

public Load ( string fileName, System.Text.Encoding encoding ) : void
fileName string
encoding System.Text.Encoding
return void

Property Details

fileName protected_oe property

protected string fileName
return string