JsonExSerializer.TokenStream Class Reference

Tokenizes input from the specified reader and returns tokens for the parser to parse. More...

List of all members.

Public Member Functions

 TokenStream (TextReader reader)
 Create an instance of the token stream to read from the given reader.
Token PeekToken ()
 Peek at the next available token without consuming it.
Token ReadToken ()
 Reads the next available token and consumes it.
bool IsEmpty ()
 Checks to see if there are any more tokens to be read.


Detailed Description

Tokenizes input from the specified reader and returns tokens for the parser to parse.


Constructor & Destructor Documentation

JsonExSerializer.TokenStream.TokenStream ( TextReader  reader  ) 

Create an instance of the token stream to read from the given reader.

Parameters:
reader 


Member Function Documentation

Token JsonExSerializer.TokenStream.PeekToken (  ) 

Peek at the next available token without consuming it.

Returns:
the next available token, or the empty token if all tokens have been read
Token.Empty

Token JsonExSerializer.TokenStream.ReadToken (  ) 

Reads the next available token and consumes it.

Returns:
the next available token, or the empty token if all tokens have been read
Token.Empty

bool JsonExSerializer.TokenStream.IsEmpty (  ) 

Checks to see if there are any more tokens to be read.

Returns:
true if no more tokens


Generated on Fri Feb 15 23:33:58 2008 for JsonExSerializer by  doxygen 1.5.2