Package javax.json
Interface JsonWriter
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
public interface JsonWriter extends java.io.CloseableWrite a JsonObject, JsonArray JsonStructure or more generic a JsonValue to the output.- See Also:
JsonWriterFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose()voidwrite(JsonStructure value)default voidwrite(JsonValue value)voidwriteArray(JsonArray array)voidwriteObject(JsonObject object)
-
-
-
Method Detail
-
writeArray
void writeArray(JsonArray array)
-
writeObject
void writeObject(JsonObject object)
-
write
void write(JsonStructure value)
-
write
default void write(JsonValue value)
-
close
void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-