public interface NumberHandler extends JsonHandlerBase
`3.14`, `9.223372E-18`, `-1`, `0`
or `9223372036854775807`.
Use this handler, if the JSON input might contain integer values lesser
than Long.MIN_VALUE or greater than Long.MAX_VALUE, or very precise floating
values and your need this precision, or you don't need to parse a number to the native form,
for example for pretty printing JSON or sending it in text format.
JsonParser can't have a NumberHandler
and IntegerHandler or NumberHandler and FloatingHandler simultaneously.
| Modifier and Type | Method and Description |
|---|---|
boolean |
onNumber(CharSequence number)
Handles a JSON array, object or standalone (top-level) number value: for example,
`3.14`, `9.223372E-18`, `-1`, `0`
or `9223372036854775807`. |
boolean onNumber(CharSequence number)
`3.14`, `9.223372E-18`, `-1`, `0`
or `9223372036854775807`.number - the number value as a CharSequencetrue if the parsing should be continued, false if it should be
stopped immediatelyCopyright © 2015. All rights reserved.