Package io.avaje.jsonb.spi
Class DelegateJsonWriter
java.lang.Object
io.avaje.jsonb.spi.DelegateJsonWriter
- All Implemented Interfaces:
JsonWriter,Closeable,Flushable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWrite array begin.final voidWrite object begin.voidclose()Close the writer.final voidWrite empty array.final voidendArray()Write array end.final voidWrite object end.voidflush()Flush the writer.voidWrite a value that could be any value.voidname(int position) Set the next property name to write by position.final voidSet the next property name to write.voidnames(PropertyNames names) Set the current property names.voidWrite null value.path()Return the current path.voidWrite raw encoded json value.booleanReturn true if empty collections should be serialised.voidserializeEmpty(boolean serializeEmpty) Set to serialise empty collections or not.booleanReturn true if null values should be serialised.voidserializeNulls(boolean serializeNulls) Set to serialise null values or not.voidvalue(boolean value) Write a boolean value.voidvalue(double value) Write a double value.voidvalue(int value) Write an int value.voidvalue(long value) Write a long value.voidWrite a Boolean value.voidWrite a Double value.voidWrite an Integer value.voidWrite a Long value.final voidWrite a string value.voidvalue(BigDecimal value) Write a BigDecimal value.
-
Constructor Details
-
DelegateJsonWriter
-
-
Method Details
-
serializeNulls
Description copied from interface:JsonWriterSet to serialise null values or not.- Specified by:
serializeNullsin interfaceJsonWriter
-
serializeNulls
Description copied from interface:JsonWriterReturn true if null values should be serialised.- Specified by:
serializeNullsin interfaceJsonWriter
-
serializeEmpty
Description copied from interface:JsonWriterReturn true if empty collections should be serialised.- Specified by:
serializeEmptyin interfaceJsonWriter
-
serializeEmpty
Description copied from interface:JsonWriterSet to serialise empty collections or not.- Specified by:
serializeEmptyin interfaceJsonWriter
-
path
Description copied from interface:JsonWriterReturn the current path.- Specified by:
pathin interfaceJsonWriter
-
beginArray
Description copied from interface:JsonWriterWrite array begin.- Specified by:
beginArrayin interfaceJsonWriter
-
endArray
Description copied from interface:JsonWriterWrite array end.- Specified by:
endArrayin interfaceJsonWriter
-
emptyArray
Description copied from interface:JsonWriterWrite empty array.- Specified by:
emptyArrayin interfaceJsonWriter
-
beginObject
Description copied from interface:JsonWriterWrite object begin.- Specified by:
beginObjectin interfaceJsonWriter
-
endObject
Description copied from interface:JsonWriterWrite object end.- Specified by:
endObjectin interfaceJsonWriter
-
name
Description copied from interface:JsonWriterSet the next property name to write.This is generally less efficient than using
JsonWriter.names(PropertyNames)andJsonWriter.name(int).- Specified by:
namein interfaceJsonWriter
-
names
Description copied from interface:JsonWriterSet the current property names.- Specified by:
namesin interfaceJsonWriter
-
name
Description copied from interface:JsonWriterSet the next property name to write by position.- Specified by:
namein interfaceJsonWriter
-
nullValue
Description copied from interface:JsonWriterWrite null value.- Specified by:
nullValuein interfaceJsonWriter
-
rawValue
Description copied from interface:JsonWriterWrite raw encoded json value.- Specified by:
rawValuein interfaceJsonWriter
-
value
Description copied from interface:JsonWriterWrite a string value.- Specified by:
valuein interfaceJsonWriter
-
value
Description copied from interface:JsonWriterWrite a boolean value.- Specified by:
valuein interfaceJsonWriter
-
value
Description copied from interface:JsonWriterWrite an int value.- Specified by:
valuein interfaceJsonWriter
-
value
Description copied from interface:JsonWriterWrite a long value.- Specified by:
valuein interfaceJsonWriter
-
value
Description copied from interface:JsonWriterWrite a double value.- Specified by:
valuein interfaceJsonWriter
-
value
Description copied from interface:JsonWriterWrite a Boolean value.- Specified by:
valuein interfaceJsonWriter
-
value
Description copied from interface:JsonWriterWrite an Integer value.- Specified by:
valuein interfaceJsonWriter
-
value
Description copied from interface:JsonWriterWrite a Long value.- Specified by:
valuein interfaceJsonWriter
-
value
Description copied from interface:JsonWriterWrite a Double value.- Specified by:
valuein interfaceJsonWriter
-
value
Description copied from interface:JsonWriterWrite a BigDecimal value.- Specified by:
valuein interfaceJsonWriter
-
jsonValue
Description copied from interface:JsonWriterWrite a value that could be any value.- Specified by:
jsonValuein interfaceJsonWriter
-
close
Description copied from interface:JsonWriterClose the writer.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceJsonWriter
-
flush
Description copied from interface:JsonWriterFlush the writer.- Specified by:
flushin interfaceFlushable- Specified by:
flushin interfaceJsonWriter
-