public final class JsonParser
extends java.lang.Object
JsonElement
sConstructor and Description |
---|
JsonParser()
Deprecated.
No need to instantiate this class, use the static methods instead.
|
Modifier and Type | Method and Description |
---|---|
JsonElement |
parse(JsonReader json)
Deprecated.
|
JsonElement |
parse(java.io.Reader json)
Deprecated.
|
JsonElement |
parse(java.lang.String json)
Deprecated.
|
static JsonElement |
parseReader(JsonReader reader)
Returns the next value from the JSON stream as a parse tree.
|
static JsonElement |
parseReader(java.io.Reader reader)
Parses the specified JSON string into a parse tree
|
static JsonElement |
parseString(java.lang.String json)
Parses the specified JSON string into a parse tree
|
@Deprecated public JsonParser()
public static JsonElement parseString(java.lang.String json) throws JsonSyntaxException
json
- JSON textJsonElement
s corresponding to the specified JSONJsonParseException
- if the specified text is not valid JSONJsonSyntaxException
public static JsonElement parseReader(java.io.Reader reader) throws JsonIOException, JsonSyntaxException
reader
- JSON textJsonElement
s corresponding to the specified JSONJsonParseException
- if the specified text is not valid JSONJsonIOException
JsonSyntaxException
public static JsonElement parseReader(JsonReader reader) throws JsonIOException, JsonSyntaxException
JsonParseException
- if there is an IOException or if the specified
text is not valid JSONJsonIOException
JsonSyntaxException
@Deprecated public JsonElement parse(java.lang.String json) throws JsonSyntaxException
parseString(java.lang.String)
JsonSyntaxException
@Deprecated public JsonElement parse(java.io.Reader json) throws JsonIOException, JsonSyntaxException
parseReader(Reader)
JsonIOException
JsonSyntaxException
@Deprecated public JsonElement parse(JsonReader json) throws JsonIOException, JsonSyntaxException
parseReader(JsonReader)
JsonIOException
JsonSyntaxException
Copyright © 2010 - 2023 Adobe. All Rights Reserved