C# 클래스 NetServ.Net.Json.JsonParser

Provided support for parsing JavaScript Object Notation data types from an underlying System.IO.TextReader.
상속: Disposable
파일 보기 프로젝트 열기: appcelerator/entourage 1 사용 예제들

공개 메소드들

메소드 설명
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 ( ) : JsonNumber

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 ( ) : JsonString

Parses a NetServ.Net.Json.JsonString from the underlying stream.

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
AssertNext ( TokenType type ) : void
FromHex ( int ch ) : int
IsNumberComponent ( int ch ) : bool
Match ( string value ) : bool
ParseStringImpl ( ) : string
ParseUnicode ( ) : char

메소드 상세

AssertDepth() 보호된 메소드

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.
protected AssertDepth ( int depth ) : void
depth int The depth.
리턴 void

Close() 공개 메소드

Closes this parser.
public Close ( ) : void
리턴 void

Dispose() 보호된 메소드

Disposed of this instance.
protected Dispose ( bool disposing ) : void
disposing bool True if being called explicitly, otherwise; false /// to indicate being called implicitly by the GC.
리턴 void

JsonParser() 공개 메소드

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.
public JsonParser ( TextReader rdr, bool ownsReader ) : System
rdr TextReader The underlying TextReader.
ownsReader bool True if this instance owns the TextReader, otherwise; /// false.
리턴 System

NextToken() 공개 메소드

Classifies the next token on the underlying stream.
public NextToken ( ) : TokenType
리턴 TokenType

ParseArray() 공개 메소드

Parses a NetServ.Net.Json.JsonArray and all contained types from the underlying stream.
public ParseArray ( ) : JsonArray
리턴 JsonArray

ParseBoolean() 공개 메소드

Parses a NetServ.Net.Json.JsonBoolean from the underlying stream.
public ParseBoolean ( ) : JsonBoolean
리턴 JsonBoolean

ParseNext() 공개 메소드

Parses the next type from the underlying stream.
public ParseNext ( ) : IJsonType
리턴 IJsonType

ParseNext() 공개 메소드

Parses the specified type from the underlying stream.
public ParseNext ( TokenType type ) : IJsonType
type TokenType The type to parse.
리턴 IJsonType

ParseNull() 공개 메소드

Parses a NetServ.Net.Json.JsonNull from the underlying stream.
public ParseNull ( ) : JsonNull
리턴 JsonNull

ParseNumber() 공개 메소드

Parses a NetServ.Net.Json.JsonNumber from the underlying stream.
public ParseNumber ( ) : JsonNumber
리턴 JsonNumber

ParseObject() 공개 메소드

Parses a NetServ.Net.Json.JsonObject and all contained types from the underlying stream.
public ParseObject ( ) : JsonObject
리턴 JsonObject

ParseString() 공개 메소드

Parses a NetServ.Net.Json.JsonString from the underlying stream.
public ParseString ( ) : JsonString
리턴 JsonString

Peek() 보호된 메소드

Peeks at and returns a single character from the underlying stream.
protected Peek ( ) : int
리턴 int

Peek() 보호된 메소드

Peeks at the next character from the underlying stream and specifies a value which indicates whether white space characters should be advanced over.
protected Peek ( bool skipWhite ) : int
skipWhite bool True to skip white space characters, otherwise; false.
리턴 int

Read() 보호된 메소드

Reads and returns a single character from the underlying stream.
protected Read ( ) : int
리턴 int

Read() 보호된 메소드

Reads the next character from the underlying stream and specified a value which indicates whether white space characters should be skipped.
protected Read ( bool skipWhite ) : int
skipWhite bool True to skip white space characters, otherwise; false.
리턴 int