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 tools.jackson.core.io.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 tools.jackson.core.io.SerializedStringAlso need to use a null marker for root value separatorfinal tools.jackson.core.PrettyPrinterTo allow for dynamic enabling/disabling of pretty printing, pretty printer can be optionally configured for writer as wellfinal tools.jackson.core.SerializableStringCaller may want to override so-called "root value separator", String added (verbatim, with no quoting or escaping) between values in root context.final tools.jackson.core.FormatSchemaWhen using data format that uses a schema, schema is passed to generator. -
Constructor Summary
ConstructorsConstructorDescriptionGeneratorSettings(tools.jackson.core.PrettyPrinter pp, tools.jackson.core.FormatSchema sch, tools.jackson.core.io.CharacterEscapes esc, tools.jackson.core.SerializableString rootSep) -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratorSettingsempty()tools.jackson.core.io.CharacterEscapestools.jackson.core.PrettyPrintertools.jackson.core.SerializableStringgetRootValueSeparator(tools.jackson.core.SerializableString defaultSep) tools.jackson.core.FormatSchemabooleanwith(tools.jackson.core.FormatSchema sch) with(tools.jackson.core.io.CharacterEscapes esc) with(tools.jackson.core.PrettyPrinter pp) withRootValueSeparator(tools.jackson.core.SerializableString sep)
-
Field Details
-
EMPTY
-
NULL_ROOT_VALUE_SEPARATOR
protected static final tools.jackson.core.io.SerializedString NULL_ROOT_VALUE_SEPARATORAlso need to use a null marker for root value separator -
empty
-
prettyPrinter
public final tools.jackson.core.PrettyPrinter prettyPrinterTo allow for dynamic enabling/disabling of pretty printing, pretty printer can be optionally configured for writer as well -
schema
public final tools.jackson.core.FormatSchema schemaWhen using data format that uses a schema, schema is passed to generator. -
characterEscapes
public final tools.jackson.core.io.CharacterEscapes characterEscapesCaller may want to specify character escaping details, either as defaults, or on call-by-call basis. -
rootValueSeparator
public final tools.jackson.core.SerializableString rootValueSeparatorCaller 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(tools.jackson.core.PrettyPrinter pp, tools.jackson.core.FormatSchema sch, tools.jackson.core.io.CharacterEscapes esc, tools.jackson.core.SerializableString rootSep)
-
-
Method Details
-
empty
-
with
-
with
-
with
-
withRootValueSeparator
-
withRootValueSeparator
-
getSchema
public tools.jackson.core.FormatSchema getSchema() -
getCharacterEscapes
public tools.jackson.core.io.CharacterEscapes getCharacterEscapes() -
getPrettyPrinter
public tools.jackson.core.PrettyPrinter getPrettyPrinter() -
hasPrettyPrinter
public boolean hasPrettyPrinter() -
getRootValueSeparator
public tools.jackson.core.SerializableString getRootValueSeparator(tools.jackson.core.SerializableString defaultSep)
-