public static enum JsonGenerator.JsonGeneratorStyle extends java.lang.Enum<JsonGenerator.JsonGeneratorStyle>
JsonGenerator
can produce.Enum Constant and Description |
---|
COMPACT
Excludes all optional whitespace to produce the briefest valid JSON.
|
PRETTY
Includes newlines, tabs, and spaces to improve readability.
|
Modifier and Type | Method and Description |
---|---|
static JsonGenerator.JsonGeneratorStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonGenerator.JsonGeneratorStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonGenerator.JsonGeneratorStyle PRETTY
public static final JsonGenerator.JsonGeneratorStyle COMPACT
public static JsonGenerator.JsonGeneratorStyle[] values()
for (JsonGenerator.JsonGeneratorStyle c : JsonGenerator.JsonGeneratorStyle.values()) System.out.println(c);
public static JsonGenerator.JsonGeneratorStyle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null