C# Class Jayrock.Json.JsonTextReader

Represents a reader that provides fast, non-cached, forward-only access to JSON data over JSON text (RFC 4627).
Inheritance: Jayrock.Json.JsonReaderBase
Datei anzeigen Open project: atifaziz/Jayrock Class Usage Examples

Private Properties

Property Type Description
NextClean char
NextString string
Parse Jayrock.Json.JsonToken
ParseArray Jayrock.Json.JsonToken
ParseArrayFirst Jayrock.Json.JsonToken
ParseArrayNext Jayrock.Json.JsonToken
ParseNextMember Jayrock.Json.JsonToken
ParseObject Jayrock.Json.JsonToken
ParseObjectMember Jayrock.Json.JsonToken
ParseObjectMemberValue Jayrock.Json.JsonToken
Pop Continuation
Push void
SyntaxError Jayrock.Json.JsonException
SyntaxError Jayrock.Json.JsonException
TryParseHex string
TryParseOctal string
Yield Jayrock.Json.JsonToken
Yield Jayrock.Json.JsonToken

Public Methods

Method Description
JsonTextReader ( TextReader reader ) : System

Protected Methods

Method Description
ReadTokenImpl ( ) : Jayrock.Json.JsonToken

Reads the next token and returns it.

Private Methods

Method Description
NextClean ( ) : char

Get the next char in the string, skipping whitespace and comments (slashslash and slashstar).

NextString ( char quote ) : string
Parse ( ) : Jayrock.Json.JsonToken

Parses the next token from the input and returns it.

ParseArray ( ) : Jayrock.Json.JsonToken

Parses expecting an array in the source.

ParseArrayFirst ( ) : Jayrock.Json.JsonToken

Parses the first element of an array or the end of the array if it is empty.

ParseArrayNext ( ) : Jayrock.Json.JsonToken

Parses the next element in the array.

ParseNextMember ( ) : Jayrock.Json.JsonToken
ParseObject ( ) : Jayrock.Json.JsonToken

Parses expecting an object in the source.

ParseObjectMember ( ) : Jayrock.Json.JsonToken

Parses the first member name of the object or the end of the array in case of an empty object.

ParseObjectMemberValue ( ) : Jayrock.Json.JsonToken
Pop ( ) : Continuation
Push ( Continuation continuation ) : void
SyntaxError ( string message ) : Jayrock.Json.JsonException
SyntaxError ( string message, Exception inner ) : Jayrock.Json.JsonException
TryParseHex ( string s ) : string
TryParseOctal ( string s ) : string
Yield ( Jayrock.Json.JsonToken token ) : Jayrock.Json.JsonToken

Yields control back to the reader's user while updating the reader with the new found token and its text.

Yield ( Jayrock.Json.JsonToken token, Continuation continuation ) : Jayrock.Json.JsonToken

Yields control back to the reader's user while updating the reader with the new found token, its text and the next continuation point into the reader.

By itself, this method cannot affect the stack such tha control is returned back to the reader's user. This must be done by Yield's caller by way of explicit return.

Method Details

JsonTextReader() public method

public JsonTextReader ( TextReader reader ) : System
reader TextReader
return System

ReadTokenImpl() protected method

Reads the next token and returns it.
protected ReadTokenImpl ( ) : Jayrock.Json.JsonToken
return Jayrock.Json.JsonToken