Package io.avaje.json.stream
Interface JsonStream.Builder
- All Known Implementing Classes:
JsonStreamBuilder
- Enclosing interface:
JsonStream
public static interface JsonStream.Builder
Used to build JsonStream with custom settings.
-
Method Summary
Modifier and TypeMethodDescriptionbufferRecycling
(BufferRecycleStrategy strategy) Determines how byte buffers are recycledbuild()
Build and return the JsonStream.failOnNullPrimitives
(boolean failOnNullPrimitives) Set to true to fail on NULL for primitive types.failOnUnknown
(boolean failOnUnknown) Set to true to fail on unknown properties.serializeEmpty
(boolean serializeEmpty) Set to true to serialize empty collections.serializeNulls
(boolean serializeNulls) Set to true to serialize nulls.
-
Method Details
-
serializeNulls
Set to true to serialize nulls. Defaults to false. -
serializeEmpty
Set to true to serialize empty collections. Defaults to false. -
failOnUnknown
Set to true to fail on unknown properties. Defaults to false. -
failOnNullPrimitives
Set to true to fail on NULL for primitive types. Defaults to false. -
bufferRecycling
Determines how byte buffers are recycled -
build
Build and return the JsonStream.
-