Package org.apache.johnzon.core
Class JsonWriterImpl
- java.lang.Object
-
- org.apache.johnzon.core.JsonWriterImpl
-
- All Implemented Interfaces:
jakarta.json.JsonWriter
,Closeable
,Serializable
,AutoCloseable
class JsonWriterImpl extends Object implements jakarta.json.JsonWriter, Serializable
-
-
Constructor Summary
Constructors Constructor Description JsonWriterImpl(jakarta.json.stream.JsonGenerator generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkState()
void
close()
private void
markCalled()
void
write(jakarta.json.JsonStructure value)
void
write(jakarta.json.JsonValue value)
void
writeArray(jakarta.json.JsonArray array)
void
writeObject(jakarta.json.JsonObject object)
-
-
-
Method Detail
-
writeArray
public void writeArray(jakarta.json.JsonArray array)
- Specified by:
writeArray
in interfacejakarta.json.JsonWriter
-
writeObject
public void writeObject(jakarta.json.JsonObject object)
- Specified by:
writeObject
in interfacejakarta.json.JsonWriter
-
write
public void write(jakarta.json.JsonValue value)
- Specified by:
write
in interfacejakarta.json.JsonWriter
-
write
public void write(jakarta.json.JsonStructure value)
- Specified by:
write
in interfacejakarta.json.JsonWriter
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfacejakarta.json.JsonWriter
-
markCalled
private void markCalled()
-
checkState
private void checkState()
-
-