|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.client.json.JsonParser
com.google.api.client.json.gson.GsonParser
@Deprecated public class GsonParser
Low-level JSON serializer implementation based on GSON.
Implementation is not thread-safe.
Method Summary | |
---|---|
void |
close()
Deprecated. Closes the parser and the underlying input stream or reader, and releases any memory associated with it. |
BigInteger |
getBigIntegerValue()
Deprecated. Returns the BigInteger value of the current token. |
byte |
getByteValue()
Deprecated. Returns the byte value of the current token. |
String |
getCurrentName()
Deprecated. Returns the most recent field name or null for array values or for root-level values. |
JsonToken |
getCurrentToken()
Deprecated. Returns the token the parser currently points to or null for none (at start of input or
after end of input). |
BigDecimal |
getDecimalValue()
Deprecated. Returns the BigDecimal value of the current token. |
double |
getDoubleValue()
Deprecated. Returns the double value of the current token. |
JsonFactory |
getFactory()
Deprecated. Returns the JSON factory from which this generator was created. |
float |
getFloatValue()
Deprecated. Returns the float value of the current token. |
int |
getIntValue()
Deprecated. Returns the int value of the current token. |
long |
getLongValue()
Deprecated. Returns the long value of the current token. |
short |
getShortValue()
Deprecated. Returns the short value of the current token. |
String |
getText()
Deprecated. Returns a textual representation of the current token or null if
JsonParser.getCurrentToken() is null . |
JsonToken |
nextToken()
Deprecated. Returns the next token from the stream or null to indicate end of input. |
JsonParser |
skipChildren()
Deprecated. Skips to the matching JsonToken.END_ARRAY if current token is
JsonToken.START_ARRAY , the matching JsonToken.END_OBJECT if the current token
is JsonToken.START_OBJECT , else does nothing. |
Methods inherited from class com.google.api.client.json.JsonParser |
---|
parse, parse, parseAndClose, parseAndClose, parseArray, parseArray, parseArrayAndClose, parseArrayAndClose, skipToKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void close() throws IOException
JsonParser
close
in class JsonParser
IOException
- if failedpublic String getCurrentName()
JsonParser
null
for array values or for root-level values.
getCurrentName
in class JsonParser
public JsonToken getCurrentToken()
JsonParser
null
for none (at start of input or
after end of input).
getCurrentToken
in class JsonParser
public JsonFactory getFactory()
JsonParser
getFactory
in class JsonParser
public byte getByteValue()
JsonParser
getByteValue
in class JsonParser
public short getShortValue()
JsonParser
getShortValue
in class JsonParser
public int getIntValue()
JsonParser
getIntValue
in class JsonParser
public float getFloatValue()
JsonParser
getFloatValue
in class JsonParser
public BigInteger getBigIntegerValue()
JsonParser
BigInteger
value of the current token.
getBigIntegerValue
in class JsonParser
public BigDecimal getDecimalValue()
JsonParser
BigDecimal
value of the current token.
getDecimalValue
in class JsonParser
public double getDoubleValue()
JsonParser
getDoubleValue
in class JsonParser
public long getLongValue()
JsonParser
getLongValue
in class JsonParser
public String getText()
JsonParser
null
if
JsonParser.getCurrentToken()
is null
.
getText
in class JsonParser
public JsonToken nextToken() throws IOException
JsonParser
null
to indicate end of input.
nextToken
in class JsonParser
IOException
public JsonParser skipChildren() throws IOException
JsonParser
JsonToken.END_ARRAY
if current token is
JsonToken.START_ARRAY
, the matching JsonToken.END_OBJECT
if the current token
is JsonToken.START_OBJECT
, else does nothing.
skipChildren
in class JsonParser
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |