public static final class ObjectWriter.GeneratorSettings extends Object implements Serializable
JsonGenerator
constructed for
writing output.Modifier and Type | Field and Description |
---|---|
CharacterEscapes |
characterEscapes
Caller may want to specify character escaping details, either as
defaults, or on call-by-call basis.
|
static ObjectWriter.GeneratorSettings |
empty |
PrettyPrinter |
prettyPrinter
To allow for dynamic enabling/disabling of pretty printing,
pretty printer can be optionally configured for writer
as well
|
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.
|
FormatSchema |
schema
When using data format that uses a schema, schema is passed
to generator.
|
Constructor and Description |
---|
GeneratorSettings(PrettyPrinter pp,
FormatSchema sch,
CharacterEscapes esc,
SerializableString rootSep) |
Modifier and Type | Method and Description |
---|---|
void |
initialize(JsonGenerator gen) |
ObjectWriter.GeneratorSettings |
with(CharacterEscapes esc) |
ObjectWriter.GeneratorSettings |
with(FormatSchema sch) |
ObjectWriter.GeneratorSettings |
with(PrettyPrinter pp) |
ObjectWriter.GeneratorSettings |
withRootValueSeparator(SerializableString sep) |
ObjectWriter.GeneratorSettings |
withRootValueSeparator(String sep) |
public static final ObjectWriter.GeneratorSettings empty
public final PrettyPrinter prettyPrinter
public final FormatSchema schema
public final CharacterEscapes characterEscapes
public final SerializableString rootValueSeparator
public GeneratorSettings(PrettyPrinter pp, FormatSchema sch, CharacterEscapes esc, SerializableString rootSep)
public ObjectWriter.GeneratorSettings with(PrettyPrinter pp)
public ObjectWriter.GeneratorSettings with(FormatSchema sch)
public ObjectWriter.GeneratorSettings with(CharacterEscapes esc)
public ObjectWriter.GeneratorSettings withRootValueSeparator(String sep)
public ObjectWriter.GeneratorSettings withRootValueSeparator(SerializableString sep)
public void initialize(JsonGenerator gen)
Copyright © 2008–2018 FasterXML. All rights reserved.