C# 클래스 XSerializer.JsonReader

상속: IDisposable
파일 보기 프로젝트 열기: QuickenLoans/XSerializer 1 사용 예제들

Private Properties

프로퍼티 타입 설명
IsWhitespace bool
ReadCurrent int
ReadEscapedChar char
ReadLiteral void
ReadNumber string
ReadWhitespace string
TryReadString bool

공개 메소드들

메소드 설명
Discard ( string path ) : void

Read and discard the next content value. If the next content type is JsonNodeType.OpenObject or JsonNodeType.OpenArray, then the reader will continue to read and discard content until the matching JsonNodeType.CloseObject or JsonNodeType.CloseArray content type is found. For all other content types, no additional reads are made.

Dispose ( ) : void
JsonReader ( TextReader reader, IJsonSerializeOperationInfo info ) : System
PeekContent ( ) : JsonNodeType

Reads the next non-whitespace node type without changing the state of the reader. If the next node type is whitespace, then all leading whitespace is consumed and discarded. The next node type is then returned, again without changing the state of the reader.

Read ( string path ) : bool

Reads the next node from the stream.

ReadContent ( string path ) : bool

Reads the next non-whitespace node from the stream.

ReadProperties ( string path ) : IEnumerable

Read the properties of a json object. The resulting collection contains the name of each property. As the collection is enumerated, for each property name, the reader is positioned at the beginning of the property's value. The caller is expected to parse the value, calling Read or ReadContent one or more times, before continuing to enumerate the collection.

SetDecryptReads ( bool value, string path ) : void

비공개 메소드들

메소드 설명
IsWhitespace ( int c ) : bool
ReadCurrent ( ) : int
ReadEscapedChar ( ) : char
ReadLiteral ( string path, string value ) : void
ReadNumber ( char c ) : string
ReadWhitespace ( char first ) : string
TryReadString ( object &value, JsonNodeType &nodeType ) : bool

메소드 상세

Discard() 공개 메소드

Read and discard the next content value. If the next content type is JsonNodeType.OpenObject or JsonNodeType.OpenArray, then the reader will continue to read and discard content until the matching JsonNodeType.CloseObject or JsonNodeType.CloseArray content type is found. For all other content types, no additional reads are made.
public Discard ( string path ) : void
path string
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

JsonReader() 공개 메소드

public JsonReader ( TextReader reader, IJsonSerializeOperationInfo info ) : System
reader TextReader
info IJsonSerializeOperationInfo
리턴 System

PeekContent() 공개 메소드

Reads the next non-whitespace node type without changing the state of the reader. If the next node type is whitespace, then all leading whitespace is consumed and discarded. The next node type is then returned, again without changing the state of the reader.
public PeekContent ( ) : JsonNodeType
리턴 JsonNodeType

Read() 공개 메소드

Reads the next node from the stream.
public Read ( string path ) : bool
path string
리턴 bool

ReadContent() 공개 메소드

Reads the next non-whitespace node from the stream.
public ReadContent ( string path ) : bool
path string
리턴 bool

ReadProperties() 공개 메소드

Read the properties of a json object. The resulting collection contains the name of each property. As the collection is enumerated, for each property name, the reader is positioned at the beginning of the property's value. The caller is expected to parse the value, calling Read or ReadContent one or more times, before continuing to enumerate the collection.
If the JSON object is malformed.
public ReadProperties ( string path ) : IEnumerable
path string /// The path to the current object. Used for error reporting. ///
리턴 IEnumerable

SetDecryptReads() 공개 메소드

public SetDecryptReads ( bool value, string path ) : void
value bool
path string
리턴 void