Method | Description | |
---|---|---|
Close ( ) : void |
Closes this parser.
|
|
JsonParser ( TextReader rdr, bool ownsReader ) : System |
Initialises a new instance of the JsonParser class and specifies the source System.IO.TextReader and a value indicating if the instance owns the specified TextReader.
|
|
NextToken ( ) : TokenType |
Classifies the next token on the underlying stream.
|
|
ParseArray ( ) : JsonArray |
Parses a NetServ.Net.Json.JsonArray and all contained types from the underlying stream.
|
|
ParseBoolean ( ) : JsonBoolean |
Parses a NetServ.Net.Json.JsonBoolean from the underlying stream.
|
|
ParseNext ( ) : IJsonType |
Parses the next type from the underlying stream.
|
|
ParseNext ( TokenType type ) : IJsonType |
Parses the specified type from the underlying stream.
|
|
ParseNull ( ) : JsonNull |
Parses a NetServ.Net.Json.JsonNull from the underlying stream.
|
|
ParseNumber ( ) : |
Parses a NetServ.Net.Json.JsonNumber from the underlying stream.
|
|
ParseObject ( ) : JsonObject |
Parses a NetServ.Net.Json.JsonObject and all contained types from the underlying stream.
|
|
ParseString ( ) : |
Parses a NetServ.Net.Json.JsonString from the underlying stream.
|
Method | Description | |
---|---|---|
AssertDepth ( int depth ) : void |
Asserts that the specified depth does not exceed P:NetServ.Net.Json.JsonParser.MaximumDepth. If the depth has been exceeded, a System.FormatException is thrown.
|
|
Dispose ( bool disposing ) : void |
Disposed of this instance.
|
|
Peek ( ) : int |
Peeks at and returns a single character from the underlying stream.
|
|
Peek ( bool skipWhite ) : int |
Peeks at the next character from the underlying stream and specifies a value which indicates whether white space characters should be advanced over.
|
|
Read ( ) : int |
Reads and returns a single character from the underlying stream.
|
|
Read ( bool skipWhite ) : int |
Reads the next character from the underlying stream and specified a value which indicates whether white space characters should be skipped.
|
Method | Description | |
---|---|---|
AssertNext ( TokenType type ) : void | ||
FromHex ( int ch ) : int | ||
IsNumberComponent ( int ch ) : bool | ||
Match ( string value ) : bool | ||
ParseStringImpl ( ) : string | ||
ParseUnicode ( ) : char |
protected AssertDepth ( int depth ) : void | ||
depth | int | The depth. |
return | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | True if being called explicitly, otherwise; false /// to indicate being called implicitly by the GC. |
return | void |
public JsonParser ( TextReader rdr, bool ownsReader ) : System | ||
rdr | TextReader | The underlying TextReader. |
ownsReader | bool | True if this instance owns the TextReader, otherwise; /// false. |
return | System |
public ParseNext ( TokenType type ) : IJsonType | ||
type | TokenType | The type to parse. |
return | IJsonType |
protected Peek ( bool skipWhite ) : int | ||
skipWhite | bool | True to skip white space characters, otherwise; false. |
return | int |
protected Read ( bool skipWhite ) : int | ||
skipWhite | bool | True to skip white space characters, otherwise; false. |
return | int |