C# 클래스 Newtonsoft.Json.JsonWriter

Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
상속: IDisposable
파일 보기 프로젝트 열기: JamesNK/Newtonsoft.Json 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AutoComplete void
AutoCompleteAll void
AutoCompleteClose void
BuildStateArray State[][]
CreateUnsupportedTypeException JsonWriterException
GetCloseTokenForType JsonToken
IDisposable void
InternalWriteComment void
InternalWriteEnd void
InternalWritePropertyName void
InternalWriteRaw void
InternalWriteStart void
InternalWriteValue void
InternalWriteWhitespace void
JsonWriter System
OnStringEscapeHandlingChanged void
Peek JsonContainerType
Pop JsonContainerType
Push void
UpdateScopeWithFinishedValue void
WriteConstructorDate void
WriteEnd void
WriteToken void
WriteValue void
WriteValue void
WriteValue void
WriteValue void
WriteValue void

공개 메소드들

메소드 설명
Close ( ) : void

Closes this stream and the underlying stream.

Flush ( ) : void

Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.

WriteComment ( string text ) : void

Writes a comment /*...*/ containing the specified text.

WriteEnd ( ) : void

Writes the end of the current JSON object or array.

WriteEndArray ( ) : void

Writes the end of an array.

WriteEndConstructor ( ) : void

Writes the end constructor.

WriteEndObject ( ) : void

Writes the end of a JSON object.

WriteNull ( ) : void

Writes a null value.

WritePropertyName ( string name ) : void

Writes the property name of a name/value pair of a JSON object.

WritePropertyName ( string name, bool escape ) : void

Writes the property name of a name/value pair of a JSON object.

WriteRaw ( string json ) : void

Writes raw JSON without changing the writer's state.

WriteRawValue ( string json ) : void

Writes raw JSON where a value is expected and updates the writer's state.

WriteStartArray ( ) : void

Writes the beginning of a JSON array.

WriteStartConstructor ( string name ) : void

Writes the start of a constructor with the given name.

WriteStartObject ( ) : void

Writes the beginning of a JSON object.

WriteToken ( JsonReader reader ) : void

Writes the current JsonReader token and its children.

WriteToken ( JsonReader reader, bool writeChildren ) : void

Writes the current JsonReader token.

WriteToken ( JsonToken token ) : void

Writes the JsonToken token.

WriteToken ( JsonToken token, object value ) : void

Writes the JsonToken token and its value.

WriteUndefined ( ) : void

Writes an undefined value.

WriteValue ( DateTime value ) : void

Writes a DateTime value.

WriteValue ( DateTimeOffset value ) : void

Writes a DateTimeOffset value.

WriteValue ( Guid value ) : void

Writes a Guid value.

WriteValue ( TimeSpan value ) : void

Writes a TimeSpan value.

WriteValue ( Uri value ) : void

Writes a Uri value.

WriteValue ( bool value ) : void

Writes a Boolean value.

WriteValue ( byte value ) : void

Writes a Byte value.

WriteValue ( char value ) : void

Writes a Char value.

WriteValue ( decimal value ) : void

Writes a Decimal value.

WriteValue ( double value ) : void

Writes a Double value.

WriteValue ( float value ) : void

Writes a Single value.

WriteValue ( int value ) : void

Writes a Int32 value.

WriteValue ( long value ) : void

Writes a Int64 value.

WriteValue ( object value ) : void

Writes a Object value. An error will raised if the value cannot be written as a single JSON token.

WriteValue ( short value ) : void

Writes a Int16 value.

WriteValue ( string value ) : void

Writes a String value.

WriteWhitespace ( string ws ) : void

Writes the given white space.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

SetWriteState ( JsonToken token, object value ) : void

Sets the state of the JsonWriter.

WriteEnd ( JsonToken token ) : void

Writes the specified end token.

WriteIndent ( ) : void

Writes indent characters.

WriteIndentSpace ( ) : void

Writes an indent space.

WriteValueDelimiter ( ) : void

Writes the JSON value delimiter.

비공개 메소드들

메소드 설명
AutoComplete ( JsonToken tokenBeingWritten ) : void
AutoCompleteAll ( ) : void
AutoCompleteClose ( JsonContainerType type ) : void
BuildStateArray ( ) : State[][]
CreateUnsupportedTypeException ( JsonWriter writer, object value ) : JsonWriterException
GetCloseTokenForType ( JsonContainerType type ) : JsonToken
IDisposable ( ) : void
InternalWriteComment ( ) : void
InternalWriteEnd ( JsonContainerType container ) : void
InternalWritePropertyName ( string name ) : void
InternalWriteRaw ( ) : void
InternalWriteStart ( JsonToken token, JsonContainerType container ) : void
InternalWriteValue ( JsonToken token ) : void
InternalWriteWhitespace ( string ws ) : void
JsonWriter ( ) : System
OnStringEscapeHandlingChanged ( ) : void
Peek ( ) : JsonContainerType
Pop ( ) : JsonContainerType
Push ( JsonContainerType value ) : void
UpdateScopeWithFinishedValue ( ) : void
WriteConstructorDate ( JsonReader reader ) : void
WriteEnd ( JsonContainerType type ) : void
WriteToken ( JsonReader reader, bool writeChildren, bool writeDateConstructorAsDate, bool writeComments ) : void
WriteValue ( JsonWriter writer, PrimitiveTypeCode typeCode, object value ) : void
WriteValue ( sbyte value ) : void
WriteValue ( uint value ) : void
WriteValue ( ulong value ) : void
WriteValue ( ushort value ) : void

메소드 상세

Close() 공개 메소드

Closes this stream and the underlying stream.
public Close ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

Flush() 공개 추상적인 메소드

Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
public abstract Flush ( ) : void
리턴 void

SetWriteState() 보호된 메소드

Sets the state of the JsonWriter.
protected SetWriteState ( JsonToken token, object value ) : void
token JsonToken The being written.
value object The value being written.
리턴 void

WriteComment() 공개 메소드

Writes a comment /*...*/ containing the specified text.
public WriteComment ( string text ) : void
text string Text to place inside the comment.
리턴 void

WriteEnd() 공개 메소드

Writes the end of the current JSON object or array.
public WriteEnd ( ) : void
리턴 void

WriteEnd() 보호된 메소드

Writes the specified end token.
protected WriteEnd ( JsonToken token ) : void
token JsonToken The end token to write.
리턴 void

WriteEndArray() 공개 메소드

Writes the end of an array.
public WriteEndArray ( ) : void
리턴 void

WriteEndConstructor() 공개 메소드

Writes the end constructor.
public WriteEndConstructor ( ) : void
리턴 void

WriteEndObject() 공개 메소드

Writes the end of a JSON object.
public WriteEndObject ( ) : void
리턴 void

WriteIndent() 보호된 메소드

Writes indent characters.
protected WriteIndent ( ) : void
리턴 void

WriteIndentSpace() 보호된 메소드

Writes an indent space.
protected WriteIndentSpace ( ) : void
리턴 void

WriteNull() 공개 메소드

Writes a null value.
public WriteNull ( ) : void
리턴 void

WritePropertyName() 공개 메소드

Writes the property name of a name/value pair of a JSON object.
public WritePropertyName ( string name ) : void
name string The name of the property.
리턴 void

WritePropertyName() 공개 메소드

Writes the property name of a name/value pair of a JSON object.
public WritePropertyName ( string name, bool escape ) : void
name string The name of the property.
escape bool A flag to indicate whether the text should be escaped when it is written as a JSON property name.
리턴 void

WriteRaw() 공개 메소드

Writes raw JSON without changing the writer's state.
public WriteRaw ( string json ) : void
json string The raw JSON to write.
리턴 void

WriteRawValue() 공개 메소드

Writes raw JSON where a value is expected and updates the writer's state.
public WriteRawValue ( string json ) : void
json string The raw JSON to write.
리턴 void

WriteStartArray() 공개 메소드

Writes the beginning of a JSON array.
public WriteStartArray ( ) : void
리턴 void

WriteStartConstructor() 공개 메소드

Writes the start of a constructor with the given name.
public WriteStartConstructor ( string name ) : void
name string The name of the constructor.
리턴 void

WriteStartObject() 공개 메소드

Writes the beginning of a JSON object.
public WriteStartObject ( ) : void
리턴 void

WriteToken() 공개 메소드

Writes the current JsonReader token and its children.
public WriteToken ( JsonReader reader ) : void
reader JsonReader The to read the token from.
리턴 void

WriteToken() 공개 메소드

Writes the current JsonReader token.
public WriteToken ( JsonReader reader, bool writeChildren ) : void
reader JsonReader The to read the token from.
writeChildren bool A flag indicating whether the current token's children should be written.
리턴 void

WriteToken() 공개 메소드

Writes the JsonToken token.
public WriteToken ( JsonToken token ) : void
token JsonToken The to write.
리턴 void

WriteToken() 공개 메소드

Writes the JsonToken token and its value.
public WriteToken ( JsonToken token, object value ) : void
token JsonToken The to write.
value object /// The value to write. /// A value is only required for tokens that have an associated value, e.g. the property name for . /// null can be passed to the method for tokens that don't have a value, e.g. . ///
리턴 void

WriteUndefined() 공개 메소드

Writes an undefined value.
public WriteUndefined ( ) : void
리턴 void

WriteValue() 공개 메소드

Writes a DateTime value.
public WriteValue ( DateTime value ) : void
value DateTime The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a DateTimeOffset value.
public WriteValue ( DateTimeOffset value ) : void
value DateTimeOffset The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Guid value.
public WriteValue ( Guid value ) : void
value Guid The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a TimeSpan value.
public WriteValue ( TimeSpan value ) : void
value TimeSpan The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Uri value.
public WriteValue ( Uri value ) : void
value Uri The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Boolean value.
public WriteValue ( bool value ) : void
value bool The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Byte value.
public WriteValue ( byte value ) : void
value byte The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Char value.
public WriteValue ( char value ) : void
value char The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Decimal value.
public WriteValue ( decimal value ) : void
value decimal The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Double value.
public WriteValue ( double value ) : void
value double The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Single value.
public WriteValue ( float value ) : void
value float The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Int32 value.
public WriteValue ( int value ) : void
value int The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Int64 value.
public WriteValue ( long value ) : void
value long The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Object value. An error will raised if the value cannot be written as a single JSON token.
public WriteValue ( object value ) : void
value object The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a Int16 value.
public WriteValue ( short value ) : void
value short The value to write.
리턴 void

WriteValue() 공개 메소드

Writes a String value.
public WriteValue ( string value ) : void
value string The value to write.
리턴 void

WriteValueDelimiter() 보호된 메소드

Writes the JSON value delimiter.
protected WriteValueDelimiter ( ) : void
리턴 void

WriteWhitespace() 공개 메소드

Writes the given white space.
public WriteWhitespace ( string ws ) : void
ws string The string of white space characters.
리턴 void