public static enum JsonProvider.JsonStyle extends java.lang.Enum<JsonProvider.JsonStyle> implements JsonProvider.JsonObjectProvider
Enum Constant and Description |
---|
JSON_ARRAY
A standard JSON array.
|
JSON_LINES
|
JSON_OBJECT
A standard JSON object.
|
Modifier and Type | Method and Description |
---|---|
static JsonProvider.JsonStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonProvider.JsonStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
createIterator
public static final JsonProvider.JsonStyle JSON_ARRAY
Under the covers it uses LargeJsonArraySplitter
to iterate over the array.
public static final JsonProvider.JsonStyle JSON_OBJECT
Under the covers it uses JsonObjectSplitter
to iterate over the object according to the same semantics as that
implementation.
public static final JsonProvider.JsonStyle JSON_LINES
Under the covers it uses a LineCountSplitter
to iterate over each line, ignoring blank lines.
public static JsonProvider.JsonStyle[] values()
for (JsonProvider.JsonStyle c : JsonProvider.JsonStyle.values()) System.out.println(c);
public static JsonProvider.JsonStyle 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