Package javax.json
Interface JsonWriter
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
public interface JsonWriter extends java.io.Closeable
Write 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 void
close()
void
write(JsonStructure value)
default void
write(JsonValue value)
void
writeArray(JsonArray array)
void
writeObject(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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-