public class JsonBuffer extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
checkWellFormed |
static String |
copyright |
protected boolean |
first |
org.slf4j.Logger |
logger |
protected Writer |
writer |
Constructor and Description |
---|
JsonBuffer()
Creates a new instance of JsonBuffer
|
JsonBuffer(Writer writer)
Creates a new instance of JsonBuffer
|
Modifier and Type | Method and Description |
---|---|
void |
closeArray() |
void |
closeObject() |
void |
openArray() |
void |
openObject() |
String |
toString() |
protected void |
writeCommaIfNeeded() |
protected void |
writeKeyRawValue(String key,
String rawValue) |
void |
writeKeyValue(String key,
Boolean booleanValue) |
void |
writeKeyValue(String key,
Integer intValue) |
void |
writeKeyValue(String key,
String value) |
public static final String copyright
public static boolean checkWellFormed
public org.slf4j.Logger logger
protected final Writer writer
protected boolean first
public JsonBuffer()
public JsonBuffer(Writer writer)
writer
- public void openArray()
public void closeArray()
public void openObject()
public void closeObject()
protected void writeCommaIfNeeded() throws IOException
IOException