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
Afficher le fichier Open project: antlr/antlr4 Class Usage Examples

Protected Properties

Свойство Type Description
fileName string

Méthodes publiques

Méthode 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

Méthode Description
ReadAllText ( string path ) : string
ReadAllText ( string path, System.Text.Encoding encoding ) : string

Method Details

AntlrFileStream() public méthode

public AntlrFileStream ( string fileName ) : Antlr4.Runtime.Sharpen
fileName string
Résultat Antlr4.Runtime.Sharpen

AntlrFileStream() public méthode

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

Load() public méthode

public Load ( string fileName, System.Text.Encoding encoding ) : void
fileName string
encoding System.Text.Encoding
Résultat void

Property Details

fileName protected_oe property

protected string fileName
Résultat string