Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class MockJsonParser (1.47.1)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 1.47.1keyboard_arrow_down
public class MockJsonParser extends JsonParser
Constructors
MockJsonParser(JsonFactory factory)
public MockJsonParser ( JsonFactory factory )
Methods
close()
Closes the parser and the underlying input stream or reader, and releases any memory associated
with it.
Overrides
getBigIntegerValue()
public BigInteger getBigIntegerValue ()
Returns the BigInteger value of the current token.
Overrides
getByteValue()
public byte getByteValue ()
Returns the byte value of the current token.
Returns
Type
Description
byte
Overrides
getCurrentName()
public String getCurrentName ()
Returns the most recent field name or null
for array values or for root-level values.
Returns
Type
Description
String
Overrides
getCurrentToken()
public JsonToken getCurrentToken ()
Returns the token the parser currently points to or null
for none (at start of input or
after end of input).
Overrides
getDecimalValue()
public BigDecimal getDecimalValue ()
Returns the BigDecimal value of the current token.
Overrides
getDoubleValue()
public double getDoubleValue ()
Returns the double value of the current token.
Returns
Type
Description
double
Overrides
getFactory()
public JsonFactory getFactory ()
Returns the JSON factory from which this generator was created.
Overrides
getFloatValue()
public float getFloatValue ()
Returns the float value of the current token.
Returns
Type
Description
float
Overrides
getIntValue()
Returns the int value of the current token.
Returns
Type
Description
int
Overrides
getLongValue()
public long getLongValue ()
Returns the long value of the current token.
Returns
Type
Description
long
Overrides
getShortValue()
public short getShortValue ()
Returns the short value of the current token.
Returns
Type
Description
short
Overrides
getText()
Returns a textual representation of the current token or null
if #getCurrentToken() is null
.
Returns
Type
Description
String
Overrides
isClosed()
public boolean isClosed ()
nextToken()
public JsonToken nextToken ()
Returns the next token from the stream or null
to indicate end of input.
Overrides
skipChildren()
public JsonParser skipChildren ()
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-13 UTC."],[],[]]