NVelocity.Runtime.Parser
Class VelocityCharStream

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).

Field Summary
int bufpos
bool staticFlag

Constructor Summary
VelocityCharStream(System.IO.TextReader dstream, int startline, int startcolumn, int buffersize)
VelocityCharStream(System.IO.TextReader dstream, int startline, int startcolumn)

Property Summary
int BeginColumn
int BeginLine
int Column
int EndColumn
int EndLine
int Line

Method Summary
void adjustBeginLineColumn(int newLine, int newCol)
void backup(int amount)
char BeginToken()
void Done()
string GetImage()
char[] GetSuffix(int len)
char readChar()
void ReInit(System.IO.TextReader dstream, int startline, int startcolumn, int buffersize)
void ReInit(System.IO.TextReader dstream, int startline, int startcolumn)

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

bufpos

public int bufpos


staticFlag

public bool staticFlag

Constructor Detail

VelocityCharStream

public VelocityCharStream(System.IO.TextReader dstream,
                          int startline,
                          int startcolumn,
                          int buffersize)


VelocityCharStream

public VelocityCharStream(System.IO.TextReader dstream,
                          int startline,
                          int startcolumn)

Property Detail

BeginColumn

public int BeginColumn


BeginLine

public int BeginLine


Column

public int Column


EndColumn

public int EndColumn


EndLine

public int EndLine


Line

public int Line

Method Detail

adjustBeginLineColumn

public void adjustBeginLineColumn(int newLine,
                                  int newCol)


backup

public void backup(int amount)


BeginToken

public char BeginToken()


Done

public void Done()


GetImage

public string GetImage()


GetSuffix

public char[] GetSuffix(int len)


readChar

public char readChar()


ReInit

public void ReInit(System.IO.TextReader dstream,
                   int startline,
                   int startcolumn,
                   int buffersize)


ReInit

public void ReInit(System.IO.TextReader dstream,
                   int startline,
                   int startcolumn)