public enum JsonState extends Enum<JsonState>
JsonState describes the current state of a JsonPullParser
and determines which methods may be called successfully next.| Enum Constant and Description |
|---|
ARRAY_BEGIN
The
JsonPullParser has encountered the begin of a JSON array. |
ARRAY_END
The
JsonPullParser has encountered the end of a JSON array. |
BOOLEAN
The
JsonPullParser has encountered a JSON boolean. |
DOCUMENT_BEGIN
The
JsonPullParser has encountered the begin of a JSON document. |
DOCUMENT_END
The
JsonPullParser has encountered the end of a JSON document. |
DOUBLE
The
JsonPullParser has encountered a JSON real. |
LONG
The
JsonPullParser has encountered a JSON integer. |
NAME
The
JsonPullParser has encountered the name of a JSON object
element. |
NULL
The
JsonPullParser has encountered a JSON null. |
OBJECT_BEGIN
The
JsonPullParser has encountered the begin of a JSON object. |
OBJECT_END
The
JsonPullParser has encountered the end of a JSON object. |
SOURCE_END
The underlying
JsonSource used by the JsonPullParser has
no more tokens. |
STRING
The
JsonPullParser has encountered a JSON string. |
| Modifier and Type | Method and Description |
|---|---|
static JsonState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonState DOCUMENT_BEGIN
JsonPullParser has encountered the begin of a JSON document.
It is possible to begin an array or
skip the array.public static final JsonState DOCUMENT_END
JsonPullParser has encountered the end of a JSON document. It
is possible to end the document.public static final JsonState ARRAY_BEGIN
JsonPullParser has encountered the begin of a JSON array. It
is possible to begin an array or
skip the array.public static final JsonState ARRAY_END
JsonPullParser has encountered the end of a JSON array. It is
possible to end the array.public static final JsonState OBJECT_BEGIN
JsonPullParser has encountered the begin of a JSON object. It
is possible to begin an object or
skip the object.public static final JsonState NAME
JsonPullParser has encountered the name of a JSON object
element. It is possible to obtain the
name or skip the name and the
corresponding value.public static final JsonState OBJECT_END
JsonPullParser has encountered the end of a JSON object. It
is possible to end the object.public static final JsonState NULL
JsonPullParser has encountered a JSON null. It is possible to
obtain the value or
skip the value.public static final JsonState BOOLEAN
JsonPullParser has encountered a JSON boolean. It is possible
to obtain the value or
skip the value.public static final JsonState LONG
public static final JsonState DOUBLE
JsonPullParser has encountered a JSON real. It is possible to
obtain the value as a double
, float or
skip the value.public static final JsonState STRING
JsonPullParser has encountered a JSON string. It is possible
to obtain the value or
skip the value.public static final JsonState SOURCE_END
JsonSource used by the JsonPullParser has
no more tokens.public static JsonState[] values()
for (JsonState c : JsonState.values()) System.out.println(c);
public static JsonState 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.