public class JsonObjectWriter extends AutoCloseable
Constructor and Description |
---|
JsonObjectWriter(Serializer serializer) |
JsonObjectWriter(Serializer serializer,
boolean flushWhenDone) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isSingleLine() |
void |
setSingleLine(boolean singleLine) |
JsonArrayWriter |
writeArrayProperty(JsonArrayProperty property) |
JsonObjectWriter |
writeObjectProperty(JsonObjectProperty property) |
void |
writeProeprty(java.lang.String propertyName,
java.lang.Object value) |
void |
writeProperty(JsonProperty property,
java.lang.Object value) |
void |
writePropertyName(java.lang.String propertyName) |
public JsonObjectWriter(Serializer serializer)
public JsonObjectWriter(Serializer serializer, boolean flushWhenDone)
public boolean isSingleLine()
public void setSingleLine(boolean singleLine)
public void writeProperty(JsonProperty property, java.lang.Object value)
public void writeProeprty(java.lang.String propertyName, java.lang.Object value)
public void writePropertyName(java.lang.String propertyName)
public JsonObjectWriter writeObjectProperty(JsonObjectProperty property)
public JsonArrayWriter writeArrayProperty(JsonArrayProperty property)
public void close()
close
in interface java.lang.AutoCloseable
close
in class AutoCloseable