Свойство | Type | Description | |
---|---|---|---|
context | JSONBaseContext | ||
contextStack | Stack |
||
reader | LookaheadReader | ||
utf8Encoding |
Méthode | Description | |
---|---|---|
JSONSerializer ( System stream ) : System |
JSONProtocol Constructor
|
|
ReadBinary ( ) : byte[] | ||
ReadBool ( ) : bool | ||
ReadByte ( ) : byte | ||
ReadDataObjectBegin ( ) : |
||
ReadDataObjectEnd ( ) : void | ||
ReadDouble ( ) : double | ||
ReadFieldBegin ( ) : |
||
ReadFieldEnd ( ) : void | ||
ReadI16 ( ) : short | ||
ReadI32 ( ) : int | ||
ReadI64 ( ) : long | ||
ReadListBegin ( ) : |
||
ReadListEnd ( ) : void | ||
ReadMapBegin ( ) : |
||
ReadMapEnd ( ) : void | ||
ReadString ( ) : String | ||
WriteBinary ( byte bin ) : void | ||
WriteBool ( bool b ) : void | ||
WriteByte ( byte b ) : void | ||
WriteDataObjectBegin ( |
||
WriteDataObjectEnd ( ) : void | ||
WriteDouble ( double dub ) : void | ||
WriteFieldBegin ( |
||
WriteFieldEnd ( ) : void | ||
WriteFieldStop ( ) : void | ||
WriteI16 ( short i16 ) : void | ||
WriteI32 ( int i32 ) : void | ||
WriteI64 ( long i64 ) : void | ||
WriteListBegin ( |
||
WriteListEnd ( ) : void | ||
WriteMapBegin ( |
||
WriteMapEnd ( ) : void | ||
WriteString ( String str ) : void |
Méthode | Description | |
---|---|---|
PopContext ( ) : void |
Pop the last JSON context off the stack
|
|
PushContext ( JSONBaseContext c ) : void |
Push a new JSON context onto the stack.
|
|
ReadJSONSyntaxChar ( byte b ) : void |
Read a byte that must match b[0]; otherwise an exception is thrown. Marked protected to avoid synthetic accessor in JSONListContext.Read and JSONPairContext.Read
|
Méthode | Description | |
---|---|---|
GetTypeIDForTypeName ( byte name ) : DataType | ||
GetTypeNameForTypeID ( DataType typeID ) : byte[] | ||
HexChar ( byte val ) : byte |
Convert a byte containing a hex value to its corresponding hex character
|
|
HexVal ( byte ch ) : byte |
Convert a byte containing a hex char ('0'-'9' or 'a'-'f') into its corresponding hex value
|
|
IsJSONNumeric ( byte b ) : bool |
Return true if the given byte could be a valid part of a JSON number.
|
|
ReadJSONArrayEnd ( ) : void | ||
ReadJSONArrayStart ( ) : void | ||
ReadJSONBase64 ( ) : byte[] |
Read in a JSON string containing base-64 encoded data and decode it.
|
|
ReadJSONDouble ( ) : double |
Read in a JSON double value. Throw if the value is not wrapped in quotes when expected or if wrapped in quotes when not expected.
|
|
ReadJSONInteger ( ) : long |
Read in a JSON number. If the context dictates, Read in enclosing quotes.
|
|
ReadJSONNumericChars ( ) : String |
Read in a sequence of characters that are all valid in JSON numbers. Does not do a complete regex check to validate that this is actually a number.
|
|
ReadJSONObjectEnd ( ) : void | ||
ReadJSONObjectStart ( ) : void | ||
ReadJSONString ( bool skipContext ) : byte[] |
Read in a JSON string, unescaping as appropriate.. Skip Reading from the context if skipContext is true.
|
|
WriteJSONArrayEnd ( ) : void | ||
WriteJSONArrayStart ( ) : void | ||
WriteJSONBase64 ( byte b ) : void |
Write out contents of byte array b as a JSON string with base-64 encoded data
|
|
WriteJSONDouble ( double num ) : void |
Write out a double as a JSON value. If it is NaN or infinity or if the context dictates escaping, Write out as JSON string.
|
|
WriteJSONInteger ( long num ) : void |
Write out number as a JSON value. If the context dictates so, it will be wrapped in quotes to output as a JSON string.
|
|
WriteJSONObjectEnd ( ) : void | ||
WriteJSONObjectStart ( ) : void | ||
WriteJSONString ( byte b ) : void |
Write the bytes in array buf as a JSON characters, escaping as needed
|
public JSONSerializer ( System stream ) : System | ||
stream | System | |
Résultat | System |
protected PushContext ( JSONBaseContext c ) : void | ||
c | JSONBaseContext | |
Résultat | void |
public ReadDataObjectBegin ( ) : |
||
Résultat |
protected ReadJSONSyntaxChar ( byte b ) : void | ||
b | byte | |
Résultat | void |
public WriteDataObjectBegin ( |
||
str | ||
Résultat | void |
public WriteFieldBegin ( |
||
field | ||
Résultat | void |
public WriteListBegin ( |
||
list | ||
Résultat | void |