<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.google.gson.JsonParser</B>
</PRE>
<HR>
<DL>
<DT><PRE>public final class <B>JsonParser</B><DT>extends <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></DL>
</PRE>
<P>
A parser to parse Json into a parse tree of <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson"><CODE>JsonElement</CODE></A>s
<CODE> <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonParser.html#parse(com.google.gson.stream.JsonReader)">parse</A></B>(<AHREF="../../../com/google/gson/stream/JsonReader.html"title="class in com.google.gson.stream">JsonReader</A> json)</CODE>
<BR>
Returns the next value from the JSON stream as a parse tree.</TD>
<CODE> <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonParser.html#parse(java.io.Reader)">parse</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Reader.html?is-external=true"title="class or interface in java.io">Reader</A> json)</CODE>
<BR>
Parses the specified JSON string into a parse tree</TD>
<CODE> <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonParser.html#parse(java.lang.String)">parse</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> json)</CODE>
<BR>
Parses the specified JSON string into a parse tree</TD>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
public <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A><B>parse</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> json)
throws <AHREF="../../../com/google/gson/JsonSyntaxException.html"title="class in com.google.gson">JsonSyntaxException</A></PRE>
<DL>
<DD>Parses the specified JSON string into a parse tree
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>json</CODE> - JSON text
<DT><B>Returns:</B><DD>a parse tree of <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson"><CODE>JsonElement</CODE></A>s corresponding to the specified JSON
<DT><B>Throws:</B>
<DD><CODE><AHREF="../../../com/google/gson/JsonParseException.html"title="class in com.google.gson">JsonParseException</A></CODE> - if the specified text is not valid JSON
<DD><CODE><AHREF="../../../com/google/gson/JsonSyntaxException.html"title="class in com.google.gson">JsonSyntaxException</A></CODE><DT><B>Since:</B></DT>
<DD>1.3</DD>
</DL>
</DD>
</DL>
<HR>
<ANAME="parse(java.io.Reader)"><!----></A><H3>
parse</H3>
<PRE>
public <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A><B>parse</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Reader.html?is-external=true"title="class or interface in java.io">Reader</A> json)
throws <AHREF="../../../com/google/gson/JsonIOException.html"title="class in com.google.gson">JsonIOException</A>,
<AHREF="../../../com/google/gson/JsonSyntaxException.html"title="class in com.google.gson">JsonSyntaxException</A></PRE>
<DL>
<DD>Parses the specified JSON string into a parse tree
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>json</CODE> - JSON text
<DT><B>Returns:</B><DD>a parse tree of <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson"><CODE>JsonElement</CODE></A>s corresponding to the specified JSON
<DT><B>Throws:</B>
<DD><CODE><AHREF="../../../com/google/gson/JsonParseException.html"title="class in com.google.gson">JsonParseException</A></CODE> - if the specified text is not valid JSON
<DD><CODE><AHREF="../../../com/google/gson/JsonIOException.html"title="class in com.google.gson">JsonIOException</A></CODE>
<DD><CODE><AHREF="../../../com/google/gson/JsonSyntaxException.html"title="class in com.google.gson">JsonSyntaxException</A></CODE><DT><B>Since:</B></DT>
public <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A><B>parse</B>(<AHREF="../../../com/google/gson/stream/JsonReader.html"title="class in com.google.gson.stream">JsonReader</A> json)
throws <AHREF="../../../com/google/gson/JsonIOException.html"title="class in com.google.gson">JsonIOException</A>,
<AHREF="../../../com/google/gson/JsonSyntaxException.html"title="class in com.google.gson">JsonSyntaxException</A></PRE>
<DL>
<DD>Returns the next value from the JSON stream as a parse tree.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="../../../com/google/gson/JsonParseException.html"title="class in com.google.gson">JsonParseException</A></CODE> - if there is an IOException or if the specified
text is not valid JSON
<DD><CODE><AHREF="../../../com/google/gson/JsonIOException.html"title="class in com.google.gson">JsonIOException</A></CODE>
<DD><CODE><AHREF="../../../com/google/gson/JsonSyntaxException.html"title="class in com.google.gson">JsonSyntaxException</A></CODE><DT><B>Since:</B></DT>