public interface ArrayWriter
ArrayWriter provides operations for outputting the elements of a JSON array.| Modifier and Type | Method and Description |
|---|---|
void |
writeElement(JsonNode element)
Writes the given
JsonNode as the next element of the array. |
void |
writeElement(WriteableJsonArray element)
Writes the given
WriteableJsonArray as the next element of the array. |
void |
writeElement(WriteableJsonNumber element)
Writes the given
WriteableJsonNumber as the next element of the array. |
void |
writeElement(WriteableJsonObject element)
Writes the given
WriteableJsonObject as the next element of the array. |
void |
writeElement(WriteableJsonString element)
Writes the given
WriteableJsonString as the next element of the array. |
void writeElement(WriteableJsonObject element) throws java.io.IOException
WriteableJsonObject as the next element of the array.element - the WriteableJsonObject to write.java.io.IOException - if there was a problem writing the WriteableJsonObjectvoid writeElement(WriteableJsonArray element) throws java.io.IOException
WriteableJsonArray as the next element of the array.element - the WriteableJsonArray to write.java.io.IOException - if there was a problem writing the WriteableJsonArrayvoid writeElement(WriteableJsonString element) throws java.io.IOException
WriteableJsonString as the next element of the array.element - the WriteableJsonString to write.java.io.IOException - if there was a problem writing the WriteableJsonStringvoid writeElement(WriteableJsonNumber element) throws java.io.IOException
WriteableJsonNumber as the next element of the array.element - the WriteableJsonNumber to write.java.io.IOException - if there was a problem writing the WriteableJsonNumberjava.lang.IllegalArgumentException - if the characters written by the WriteableJsonNumber didn't constitute a complete JSON number.void writeElement(JsonNode element) throws java.io.IOException
JsonNode as the next element of the array.element - the JsonNode to write.java.io.IOException - if there was a problem writing the JsonNode