public interface JsonWriter
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close output writer.
|
void |
flush()
Flush output writer.
|
void |
writeEndArray()
Write the end of JSON array ']'.
|
void |
writeEndObject()
Write the end of JSON object '}'.
|
void |
writeKey(String key)
Write the key.
|
void |
writeNull()
Write the null data to stream.
|
void |
writeStartArray()
Write the start of JSON array '['.
|
void |
writeStartObject()
Write the start of JSON object '{'.
|
void |
writeString(String value)
Write the String to stream.
|
void |
writeValue(boolean value)
Write the value of boolean type to stream.
|
void |
writeValue(double value)
Write the value of double type to stream.
|
void |
writeValue(long value)
Write the value of long type to stream.
|
void writeStartObject()
throws JsonException
JsonException - if any errors, include i/o errors occurs.void writeEndObject()
throws JsonException
JsonException - if any errors, include i/o errors occurs.void writeStartArray()
throws JsonException
JsonException - if any errors, include i/o errors occurs.void writeKey(String key) throws JsonException
key - the key.JsonException - if any errors, include i/o errors occurs.void writeEndArray()
throws JsonException
JsonException - if any errors, include i/o errors occurs.void writeString(String value) throws JsonException
value - the String.JsonException - if any errors, include i/o errors occurs.void writeValue(long value)
throws JsonException
value - the value of long type.JsonException - if any errors, include i/o errors occurs.void writeValue(double value)
throws JsonException
value - the value of double type.JsonException - if any errors, include i/o errors occurs.void writeValue(boolean value)
throws JsonException
value - the value of boolean type.JsonException - if any errors, include i/o errors occurs.void writeNull()
throws JsonException
JsonException - if any errors, include i/o errors occurs.void flush()
throws JsonException
JsonException - if any errors, include i/o errors occurs.void close()
throws JsonException
JsonException - if any errors, include i/o errors occurs.Copyright © 2018 eXo Platform SAS. All Rights Reserved.