public enum JsonParserMode extends Enum<JsonParserMode>
JsonParserMode is a configuration flag that modifies the execution
of a JsonSourcePullParser or a JsonSourcePushParser.| Enum Constant and Description |
|---|
MULTI_DOCUMENT_MODE
Allows a
JsonSource to contain successive JSON documents. |
STRICT_STRUCT_MODE
Requires that the JSON document contains either a JSON array or a JSON
object, but no other JSON value, as required in the now obsolete RFC 4627
|
| Modifier and Type | Method and Description |
|---|---|
static JsonParserMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonParserMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonParserMode MULTI_DOCUMENT_MODE
JsonSource to contain successive JSON documents. May be
useful to stream through a log file that contains appended JSON documents
or to process a server response where the server sends multiple JSON
documents through a persistent connection.public static final JsonParserMode STRICT_STRUCT_MODE
public static JsonParserMode[] values()
for (JsonParserMode c : JsonParserMode.values()) System.out.println(c);
public static JsonParserMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.