public static final class ObjectWriter.GeneratorSettings extends Object implements Serializable
JsonGenerator
constructed for
writing output.Modifier and Type | Field and Description |
---|---|
com.fasterxml.jackson.core.io.CharacterEscapes |
characterEscapes
Caller may want to specify character escaping details, either as
defaults, or on call-by-call basis.
|
static ObjectWriter.GeneratorSettings |
empty |
com.fasterxml.jackson.core.PrettyPrinter |
prettyPrinter
To allow for dynamic enabling/disabling of pretty printing,
pretty printer can be optionally configured for writer
as well
|
com.fasterxml.jackson.core.SerializableString |
rootValueSeparator
Caller may want to override so-called "root value separator",
String added (verbatim, with no quoting or escaping) between
values in root context.
|
com.fasterxml.jackson.core.FormatSchema |
schema
When using data format that uses a schema, schema is passed
to generator.
|
Constructor and Description |
---|
GeneratorSettings(com.fasterxml.jackson.core.PrettyPrinter pp,
com.fasterxml.jackson.core.FormatSchema sch,
com.fasterxml.jackson.core.io.CharacterEscapes esc,
com.fasterxml.jackson.core.SerializableString rootSep) |
Modifier and Type | Method and Description |
---|---|
void |
initialize(com.fasterxml.jackson.core.JsonGenerator gen) |
ObjectWriter.GeneratorSettings |
with(com.fasterxml.jackson.core.io.CharacterEscapes esc) |
ObjectWriter.GeneratorSettings |
with(com.fasterxml.jackson.core.FormatSchema sch) |
ObjectWriter.GeneratorSettings |
with(com.fasterxml.jackson.core.PrettyPrinter pp) |
ObjectWriter.GeneratorSettings |
withRootValueSeparator(com.fasterxml.jackson.core.SerializableString sep) |
ObjectWriter.GeneratorSettings |
withRootValueSeparator(String sep) |
public static final ObjectWriter.GeneratorSettings empty
public final com.fasterxml.jackson.core.PrettyPrinter prettyPrinter
public final com.fasterxml.jackson.core.FormatSchema schema
public final com.fasterxml.jackson.core.io.CharacterEscapes characterEscapes
public final com.fasterxml.jackson.core.SerializableString rootValueSeparator
public GeneratorSettings(com.fasterxml.jackson.core.PrettyPrinter pp, com.fasterxml.jackson.core.FormatSchema sch, com.fasterxml.jackson.core.io.CharacterEscapes esc, com.fasterxml.jackson.core.SerializableString rootSep)
public ObjectWriter.GeneratorSettings with(com.fasterxml.jackson.core.PrettyPrinter pp)
public ObjectWriter.GeneratorSettings with(com.fasterxml.jackson.core.FormatSchema sch)
public ObjectWriter.GeneratorSettings with(com.fasterxml.jackson.core.io.CharacterEscapes esc)
public ObjectWriter.GeneratorSettings withRootValueSeparator(String sep)
public ObjectWriter.GeneratorSettings withRootValueSeparator(com.fasterxml.jackson.core.SerializableString sep)
public void initialize(com.fasterxml.jackson.core.JsonGenerator gen)
Copyright © 2008–2022 FasterXML. All rights reserved.