| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gson.JsonParser
public final class JsonParser
A parser to parse Json into a parse tree of JsonElements
| Constructor Summary | |
|---|---|
| JsonParser() | |
| Method Summary | |
|---|---|
|  JsonElement | parse(JsonReader json)Returns the next value from the JSON stream as a parse tree. | 
|  JsonElement | parse(Reader json)Parses the specified JSON string into a parse tree | 
|  JsonElement | parse(String json)Parses the specified JSON string into a parse tree | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public JsonParser()
| Method Detail | 
|---|
public JsonElement parse(String json)
                  throws JsonSyntaxException
json - JSON text
JsonElements corresponding to the specified JSON
JsonParseException - if the specified text is not valid JSON
JsonSyntaxException
public JsonElement parse(Reader json)
                  throws JsonIOException,
                         JsonSyntaxException
json - JSON text
JsonElements corresponding to the specified JSON
JsonParseException - if the specified text is not valid JSON
JsonIOException
JsonSyntaxException
public JsonElement parse(JsonReader json)
                  throws JsonIOException,
                         JsonSyntaxException
JsonParseException - if there is an IOException or if the specified
     text is not valid JSON
JsonIOException
JsonSyntaxException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||