Class JsonWriter.Builder
java.lang.Object
software.amazon.awssdk.protocols.jsoncore.JsonWriter.Builder
- Enclosing class:
JsonWriter
A builder for configuring and creating
JsonWriter
. Created via JsonWriter.builder()
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build aJsonNodeParser
based on the current configuration of this builder.jsonFactory
(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory) TheJsonFactory
implementation to be used when parsing the input.jsonGeneratorFactory
(JsonWriter.JsonGeneratorFactory jsonGeneratorFactory) A factory forJsonGenerator
s based on anOutputStream
.
-
Method Details
-
jsonFactory
public JsonWriter.Builder jsonFactory(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory) TheJsonFactory
implementation to be used when parsing the input. This allows JSON extensions like CBOR or Ion to be supported.It's highly recommended to use a shared
JsonFactory
where possible, so they should be stored statically: http://wiki.fasterxml.com/JacksonBestPracticesPerformanceBy default, this is
JsonNodeParser.DEFAULT_JSON_FACTORY
.Setting this value will also override any values set via
jsonGeneratorFactory
. -
jsonGeneratorFactory
public JsonWriter.Builder jsonGeneratorFactory(JsonWriter.JsonGeneratorFactory jsonGeneratorFactory) A factory forJsonGenerator
s based on anOutputStream
. This allows custom JSON generator configuration, like pretty-printing output.It's highly recommended to use a shared
JsonFactory
within this generator factory, where possible, so they should be stored statically: http://wiki.fasterxml.com/JacksonBestPracticesPerformanceBy default, this delegates to
JsonNodeParser.DEFAULT_JSON_FACTORY
to create the generator.Setting this value will also override any values set via
jsonFactory(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory)
. -
build
Build aJsonNodeParser
based on the current configuration of this builder.
-