Uses of Enum
com.google.gson.stream.JsonToken
Packages that use JsonToken
Package
Description
This package provides classes for processing JSON in an efficient streaming way.
-
Uses of JsonToken in com.google.gson.internal.bind
Methods in com.google.gson.internal.bind that return JsonTokenMethods in com.google.gson.internal.bind with parameters of type JsonTokenModifier and TypeMethodDescriptionprivate void
private JsonElement
JsonElementTypeAdapter.readTerminal
(JsonReader in, JsonToken peeked) Reads aJsonElement
which cannot have any nested elementsprivate Object
ObjectTypeAdapter.readTerminal
(JsonReader in, JsonToken peeked) Reads anObject
which cannot have any nested elementsprivate JsonElement
JsonElementTypeAdapter.tryBeginNesting
(JsonReader in, JsonToken peeked) Tries to begin reading a JSON array or JSON object, returningnull
if the next element is neither of those.private Object
ObjectTypeAdapter.tryBeginNesting
(JsonReader in, JsonToken peeked) Tries to begin reading a JSON array or JSON object, returningnull
if the next element is neither of those. -
Uses of JsonToken in com.google.gson.stream
Methods in com.google.gson.stream that return JsonTokenModifier and TypeMethodDescriptionJsonReader.peek()
Returns the type of the next token without consuming it.static JsonToken
Returns the enum constant of this type with the specified name.static JsonToken[]
JsonToken.values()
Returns an array containing the constants of this enum type, in the order they are declared.