public class JsonStringWriter extends AbstractJsonStringWriter
| 限定符和类型 | 字段和说明 |
|---|---|
static Set<Character> |
SPECIAL_CHARACTER |
buf, bufLocal, count, FALSE_VALUE, MIN_INT_VALUE, MIN_LONG_VALUE, NULL, TRUE_VALUE| 构造器和说明 |
|---|
JsonStringWriter() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
escapeSpecialCharacter(char ch)
This method is used to filter some special characters.
|
boolean |
existRef(Object obj) |
void |
popRef() |
void |
pushRef(Object obj) |
void |
writeBooleanArray(boolean[] array) |
void |
writeBooleanArray(Boolean[] array) |
void |
writeIntArray(int[] array) |
void |
writeIntArray(Integer[] array) |
void |
writeLongArray(long[] array) |
void |
writeLongArray(Long[] array) |
void |
writeShortArray(short[] array) |
void |
writeShortArray(Short[] array) |
void |
writeStringArray(String[] array) |
void |
writeStringWithQuote(String value) |
public static String escapeSpecialCharacter(char ch)
ch - be tested characterpublic void pushRef(Object obj)
pushRef 在类中 JsonWriterpublic boolean existRef(Object obj)
existRef 在类中 JsonWriterpublic void popRef()
popRef 在类中 JsonWriterpublic void writeStringWithQuote(String value)
writeStringWithQuote 在类中 JsonWriterpublic void writeStringArray(String[] array)
writeStringArray 在类中 JsonWriterpublic void writeIntArray(int[] array)
writeIntArray 在类中 JsonWriterpublic void writeIntArray(Integer[] array)
writeIntArray 在类中 JsonWriterpublic void writeShortArray(short[] array)
writeShortArray 在类中 JsonWriterpublic void writeShortArray(Short[] array)
writeShortArray 在类中 JsonWriterpublic void writeLongArray(long[] array)
writeLongArray 在类中 JsonWriterpublic void writeLongArray(Long[] array)
writeLongArray 在类中 JsonWriterpublic void writeBooleanArray(boolean[] array)
writeBooleanArray 在类中 JsonWriterpublic void writeBooleanArray(Boolean[] array)
writeBooleanArray 在类中 JsonWriterCopyright © 2016. All rights reserved.