class JsonWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
private static char[] |
BS_CHARS |
private static int |
CONTROL_CHARACTERS_END |
private static char[] |
CR_CHARS |
private static char[] |
HEX_DIGITS |
private static char[] |
LF_CHARS |
private static char[] |
QUOT_CHARS |
private static char[] |
TAB_CHARS |
private static char[] |
UNICODE_2028_CHARS |
private static char[] |
UNICODE_2029_CHARS |
protected Writer |
writer |
| Constructor and Description |
|---|
JsonWriter(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
private static char[] |
getReplacementChars(char ch) |
protected void |
writeArrayClose() |
protected void |
writeArrayOpen() |
protected void |
writeArraySeparator() |
protected void |
writeJsonString(String string) |
protected void |
writeLiteral(String value) |
protected void |
writeMemberName(String name) |
protected void |
writeMemberSeparator() |
protected void |
writeNumber(String string) |
protected void |
writeObjectClose() |
protected void |
writeObjectOpen() |
protected void |
writeObjectSeparator() |
protected void |
writeString(String string) |
private static final int CONTROL_CHARACTERS_END
private static final char[] QUOT_CHARS
private static final char[] BS_CHARS
private static final char[] LF_CHARS
private static final char[] CR_CHARS
private static final char[] TAB_CHARS
private static final char[] UNICODE_2028_CHARS
private static final char[] UNICODE_2029_CHARS
private static final char[] HEX_DIGITS
protected final Writer writer
JsonWriter(Writer writer)
protected void writeLiteral(String value) throws IOException
IOExceptionprotected void writeNumber(String string) throws IOException
IOExceptionprotected void writeString(String string) throws IOException
IOExceptionprotected void writeArrayOpen()
throws IOException
IOExceptionprotected void writeArrayClose()
throws IOException
IOExceptionprotected void writeArraySeparator()
throws IOException
IOExceptionprotected void writeObjectOpen()
throws IOException
IOExceptionprotected void writeObjectClose()
throws IOException
IOExceptionprotected void writeMemberName(String name) throws IOException
IOExceptionprotected void writeMemberSeparator()
throws IOException
IOExceptionprotected void writeObjectSeparator()
throws IOException
IOExceptionprotected void writeJsonString(String string) throws IOException
IOExceptionprivate static char[] getReplacementChars(char ch)
Copyright © 2011–2016 David R. Smith. All rights reserved.