public interface ObjectWriter
ObjectWriter provides operations for outputting the fields of a JSON object.| Modifier and Type | Method and Description |
|---|---|
void |
writeField(JsonField jsonField)
Writes the given name and value as the next field of the object.
|
void |
writeField(JsonStringNode name,
JsonNode value)
Writes the given name and value as the next field of the object.
|
void |
writeField(JsonStringNode name,
WriteableJsonArray value)
Writes the given name and value as the next field of the object.
|
void |
writeField(JsonStringNode name,
WriteableJsonNumber value)
Writes the given name and value as the next field of the object.
|
void |
writeField(JsonStringNode name,
WriteableJsonObject value)
Writes the given name and value as the next field of the object.
|
void |
writeField(JsonStringNode name,
WriteableJsonString value)
Writes the given name and value as the next field of the object.
|
void |
writeField(java.lang.String name,
JsonNode value)
Writes the given name and value as the next field of the object.
|
void |
writeField(java.lang.String name,
WriteableJsonArray value)
Writes the given name and value as the next field of the object.
|
void |
writeField(java.lang.String name,
WriteableJsonNumber value)
Writes the given name and value as the next field of the object.
|
void |
writeField(java.lang.String name,
WriteableJsonObject value)
Writes the given name and value as the next field of the object.
|
void |
writeField(java.lang.String name,
WriteableJsonString value)
Writes the given name and value as the next field of the object.
|
void |
writeField(WriteableJsonString name,
JsonNode value)
Writes the given name and value as the next field of the object.
|
void |
writeField(WriteableJsonString name,
WriteableJsonArray value)
Writes the given name and value as the next field of the object.
|
void |
writeField(WriteableJsonString name,
WriteableJsonNumber value)
Writes the given name and value as the next field of the object.
|
void |
writeField(WriteableJsonString name,
WriteableJsonObject value)
Writes the given name and value as the next field of the object.
|
void |
writeField(WriteableJsonString name,
WriteableJsonString value)
Writes the given name and value as the next field of the object.
|
void writeField(java.lang.String name,
WriteableJsonObject value)
throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(java.lang.String name,
WriteableJsonArray value)
throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(java.lang.String name,
WriteableJsonString value)
throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(java.lang.String name,
WriteableJsonNumber value)
throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.java.lang.IllegalArgumentException - if the characters written by the WriteableJsonNumber didn't constitute a complete JSON number.void writeField(java.lang.String name,
JsonNode value)
throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(JsonStringNode name, WriteableJsonObject value) throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(JsonStringNode name, WriteableJsonArray value) throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(JsonStringNode name, WriteableJsonString value) throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(JsonStringNode name, WriteableJsonNumber value) throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.java.lang.IllegalArgumentException - if the characters written by the WriteableJsonNumber didn't constitute a complete JSON number.void writeField(JsonStringNode name, JsonNode value) throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(WriteableJsonString name, WriteableJsonObject value) throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(WriteableJsonString name, WriteableJsonArray value) throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(WriteableJsonString name, WriteableJsonString value) throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(WriteableJsonString name, WriteableJsonNumber value) throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.java.lang.IllegalArgumentException - if the characters written by the WriteableJsonNumber didn't constitute a complete JSON number.void writeField(WriteableJsonString name, JsonNode value) throws java.io.IOException
name - the name of the field.value - the value of the field.java.io.IOException - if there was a problem writing the field.void writeField(JsonField jsonField) throws java.io.IOException
jsonField - the field to write.java.io.IOException - if there was a problem writing the field.