public static enum JsonParser.Event extends Enum<JsonParser.Event>
JsonParser.| Enum Constant and Description | 
|---|
| END_ARRAYEnd of a JSON array. | 
| END_OBJECTEnd of a JSON object. | 
| KEY_NAMEName in a name/value pair of a JSON object. | 
| START_ARRAYStart of a JSON array. | 
| START_OBJECTStart of a JSON object. | 
| VALUE_FALSEfalsevalue in a JSON array or object. | 
| VALUE_NULLnullvalue in a JSON array or object. | 
| VALUE_NUMBERNumber value in a JSON array or object. | 
| VALUE_STRINGString value in a JSON array or object. | 
| VALUE_TRUEtruevalue in a JSON array or object. | 
| Modifier and Type | Method and Description | 
|---|---|
| static JsonParser.Event | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static JsonParser.Event[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final JsonParser.Event START_ARRAY
public static final JsonParser.Event START_OBJECT
public static final JsonParser.Event KEY_NAME
JsonParser.getString() returns the key
 name.public static final JsonParser.Event VALUE_STRING
JsonParser.getString()
 returns the string value.public static final JsonParser.Event VALUE_NUMBER
JsonParser provides the following
 methods to access the number value: JsonParser.getInt(),
 JsonParser.getLong(), and JsonParser.getBigDecimal().public static final JsonParser.Event VALUE_TRUE
true value in a JSON array or object. The position of the
 parser is after the true value.public static final JsonParser.Event VALUE_FALSE
false value in a JSON array or object. The position of the
 parser is after the false value.public static final JsonParser.Event VALUE_NULL
null value in a JSON array or object. The position of the
 parser is after the null value.public static final JsonParser.Event END_OBJECT
public static final JsonParser.Event END_ARRAY
public static JsonParser.Event[] values()
for (JsonParser.Event c : JsonParser.Event.values()) System.out.println(c);
public static JsonParser.Event 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 © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.