java.lang.Object
tools.jackson.databind.cfg.GeneratorSettings
- All Implemented Interfaces:
Serializable
Helper class used for containing settings specifically related
to (re)configuring
JsonGenerator constructed for
writing output.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal CharacterEscapesCaller may want to specify character escaping details, either as defaults, or on call-by-call basis.static final GeneratorSettingsprotected static final GeneratorSettingsprotected static final SerializedStringAlso need to use a null marker for root value separatorfinal PrettyPrinterTo allow for dynamic enabling/disabling of pretty printing, pretty printer can be optionally configured for writer as wellfinal SerializableStringCaller may want to override so-called "root value separator", String added (verbatim, with no quoting or escaping) between values in root context.final FormatSchemaWhen using data format that uses a schema, schema is passed to generator. -
Constructor Summary
ConstructorsConstructorDescriptionGeneratorSettings(PrettyPrinter pp, FormatSchema sch, CharacterEscapes esc, SerializableString rootSep) -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratorSettingsempty()getRootValueSeparator(SerializableString defaultSep) booleanwith(FormatSchema sch) with(CharacterEscapes esc) with(PrettyPrinter pp)
-
Field Details
-
EMPTY
-
NULL_ROOT_VALUE_SEPARATOR
Also need to use a null marker for root value separator -
empty
-
prettyPrinter
To allow for dynamic enabling/disabling of pretty printing, pretty printer can be optionally configured for writer as well -
schema
When using data format that uses a schema, schema is passed to generator. -
characterEscapes
Caller may want to specify character escaping details, either as defaults, or on call-by-call basis. -
rootValueSeparator
Caller may want to override so-called "root value separator", String added (verbatim, with no quoting or escaping) between values in root context. Default value is a single space character, but this is often changed to linefeed.
-
-
Constructor Details
-
GeneratorSettings
public GeneratorSettings(PrettyPrinter pp, FormatSchema sch, CharacterEscapes esc, SerializableString rootSep)
-
-
Method Details
-
empty
-
with
-
with
-
with
-
withRootValueSeparator
-
withRootValueSeparator
-
getSchema
-
getCharacterEscapes
-
getPrettyPrinter
-
hasPrettyPrinter
public boolean hasPrettyPrinter() -
getRootValueSeparator
-