public static final class JsonWriter.Builder extends Object
JsonWriter. Created via JsonWriter.builder().| Modifier and Type | Method and Description |
|---|---|
JsonWriter |
build()
Build a
JsonNodeParser based on the current configuration of this builder. |
JsonWriter.Builder |
jsonFactory(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory)
The
JsonFactory implementation to be used when parsing the input. |
JsonWriter.Builder |
jsonGeneratorFactory(JsonWriter.JsonGeneratorFactory jsonGeneratorFactory)
A factory for
JsonGenerators based on an OutputStream. |
public JsonWriter.Builder jsonFactory(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory)
JsonFactory 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/JacksonBestPracticesPerformance
By default, this is JsonNodeParser.DEFAULT_JSON_FACTORY.
Setting this value will also override any values set via jsonGeneratorFactory.
public JsonWriter.Builder jsonGeneratorFactory(JsonWriter.JsonGeneratorFactory jsonGeneratorFactory)
JsonGenerators based on an OutputStream. 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/JacksonBestPracticesPerformance
By 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).
public JsonWriter build()
JsonNodeParser based on the current configuration of this builder.Copyright © 2023. All rights reserved.