public class MockJsonParser extends JsonParser
Constructors
MockJsonParser(JsonFactory factory)
public MockJsonParser(JsonFactory factory)
Parameter
Methods
close()
Closes the parser and the underlying input stream or reader, and releases any memory associated
with it.
Overrides
Exceptions
getBigIntegerValue()
public BigInteger getBigIntegerValue()
Returns the BigInteger value of the current token.
Returns
Overrides
Exceptions
getByteValue()
public byte getByteValue()
Returns the byte value of the current token.
Returns
Overrides
Exceptions
getCurrentName()
public String getCurrentName()
Returns the most recent field name or null
for array values or for root-level values.
Returns
Overrides
Exceptions
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).
Returns
Overrides
getDecimalValue()
public BigDecimal getDecimalValue()
Returns the BigDecimal value of the current token.
Returns
Overrides
Exceptions
getDoubleValue()
public double getDoubleValue()
Returns the double value of the current token.
Returns
Overrides
Exceptions
getFactory()
public JsonFactory getFactory()
Returns the JSON factory from which this generator was created.
Returns
Overrides
getFloatValue()
public float getFloatValue()
Returns the float value of the current token.
Returns
Overrides
Exceptions
getIntValue()
Returns the int value of the current token.
Returns
Overrides
Exceptions
getLongValue()
public long getLongValue()
Returns the long value of the current token.
Returns
Overrides
Exceptions
getShortValue()
public short getShortValue()
Returns the short value of the current token.
Returns
Overrides
Exceptions
getText()
Returns a textual representation of the current token or null
if #getCurrentToken() is null
.
Returns
Overrides
Exceptions
isClosed()
public boolean isClosed()
Returns
nextToken()
public JsonToken nextToken()
Returns the next token from the stream or null
to indicate end of input.
Returns
Overrides
Exceptions
skipChildren()
public JsonParser skipChildren()
Returns
Overrides
Exceptions