Class JsonValueWriter
- java.lang.Object
-
- java.io.Writer
-
- org.apache.johnzon.jsonb.extension.JsonValueWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
,Consumer<jakarta.json.JsonValue>
public class JsonValueWriter extends Writer implements Consumer<jakarta.json.JsonValue>
-
-
Field Summary
Fields Modifier and Type Field Description private StringBuilder
fallbackOutput
private jakarta.json.JsonValue
result
-
Constructor Summary
Constructors Constructor Description JsonValueWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
accept(jakarta.json.JsonValue jsonValue)
void
close()
void
flush()
jakarta.json.JsonArray
getArray()
jakarta.json.JsonObject
getObject()
jakarta.json.JsonValue
getResult()
void
setResult(jakarta.json.JsonValue result)
Deprecated.void
write(char[] cbuf, int off, int len)
-
Methods inherited from class java.io.Writer
append, append, append, nullWriter, write, write, write, write
-
-
-
-
Field Detail
-
result
private jakarta.json.JsonValue result
-
fallbackOutput
private StringBuilder fallbackOutput
-
-
Method Detail
-
flush
public void flush()
-
close
public void close()
-
setResult
@Deprecated public void setResult(jakarta.json.JsonValue result)
Deprecated.
-
getResult
public jakarta.json.JsonValue getResult()
-
getObject
public jakarta.json.JsonObject getObject()
-
getArray
public jakarta.json.JsonArray getArray()
-
-