public final class JsonParser
extends java.lang.Object
JsonElements| Constructor 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 textJsonElements corresponding to the specified JSONJsonParseException - if the specified text is not valid JSONJsonSyntaxExceptionpublic static JsonElement parseReader(java.io.Reader reader) throws JsonIOException, JsonSyntaxException
reader - JSON textJsonElements corresponding to the specified JSONJsonParseException - if the specified text is not valid JSONJsonIOExceptionJsonSyntaxExceptionpublic static JsonElement parseReader(JsonReader reader) throws JsonIOException, JsonSyntaxException
JsonParseException - if there is an IOException or if the specified
text is not valid JSONJsonIOExceptionJsonSyntaxException@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)JsonIOExceptionJsonSyntaxException@Deprecated public JsonElement parse(JsonReader json) throws JsonIOException, JsonSyntaxException
parseReader(JsonReader)JsonIOExceptionJsonSyntaxExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved