public interface JsonWriter
extends java.io.Flushable, java.lang.AutoCloseable
JsonStreamFactory| Modifier and Type | Method and Description |
|---|---|
void |
close()
Free resources associated with this writer.
|
void |
flush()
Writes all cached data.
|
JsonWriter |
writeArrayEnd()
Writes JSON
array end token. |
JsonWriter |
writeArrayStart()
Writes JSON
array start token. |
JsonWriter |
writeBigDecimal(java.math.BigDecimal data)
Writes JSON
number. |
JsonWriter |
writeBigInteger(java.math.BigInteger data)
Writes JSON
number. |
JsonWriter |
writeBoolean(boolean data)
Writes JSON
true or false token. |
JsonWriter |
writeByte(byte data)
Writes JSON
number. |
JsonWriter |
writeDouble(double data)
Writes JSON
number. |
JsonWriter |
writeFloat(float data)
Writes JSON
number. |
JsonWriter |
writeInt(int data)
Writes JSON
number. |
JsonWriter |
writeLong(long data)
Writes JSON
number. |
JsonWriter |
writeNull()
Writes JSON
null token. |
JsonWriter |
writeObjectEnd()
Writes JSON
object end token. |
JsonWriter |
writeObjectStart()
Writes JSON
object start token. |
JsonWriter |
writeShort(short data)
Writes JSON
number. |
JsonWriter |
writeString(java.lang.String data)
Writes JSON
string. |
JsonWriter writeObjectStart() throws java.io.IOException, JsonException
object start token.java.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeObjectEnd() throws java.io.IOException, JsonException
object end token.java.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeArrayStart() throws java.io.IOException, JsonException
array start token.java.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeArrayEnd() throws java.io.IOException, JsonException
array end token.java.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeNull() throws java.io.IOException, JsonException
null token.java.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeString(java.lang.String data) throws java.io.IOException, JsonException
string.data - to encodejava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeBoolean(boolean data) throws java.io.IOException, JsonException
true or false token.data - to encodejava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeByte(byte data) throws java.io.IOException, JsonException
number.data - to encodejava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeShort(short data) throws java.io.IOException, JsonException
number.data - to encodejava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeInt(int data) throws java.io.IOException, JsonException
number.data - to encodejava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeLong(long data) throws java.io.IOException, JsonException
number.data - to encodejava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeBigInteger(java.math.BigInteger data) throws java.io.IOException, JsonException
number.data - to encodejava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeBigDecimal(java.math.BigDecimal data) throws java.io.IOException, JsonException
number.data - to encodejava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeFloat(float data) throws java.io.IOException, JsonException
number.data - to encodejava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedJsonWriter writeDouble(double data) throws java.io.IOException, JsonException
number.data - to encodejava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedvoid flush()
throws java.io.IOException
flush in interface java.io.Flushablejava.io.IOException - if some I/O error occursvoid close()
throws java.io.IOException,
JsonException
close in interface java.lang.AutoCloseablejava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedCopyright © 2017 FOSS Nova Software Foundation. All rights reserved.