public interface IntegerHandler extends JsonHandlerBase
`-1`,`0` or `9223372036854775807`.
Use this handler, only if 1) you are sure integer values in the JSON are within
Java's long range, otherwise if you use IntegerHandler
ParseException would be thrown,
and 2) you don't need to convert the values back to string form. Otherwise, use
NumberHandler and parse integer and floating values on your side, if needed.
JsonParser can't have a NumberHandler
and IntegerHandler simultaneously.
| Modifier and Type | Method and Description |
|---|---|
boolean |
onInteger(long value)
Handles a JSON array, object or standalone (top-level) integer number value: for example,
`-1`,`0` or `9223372036854775807`. |
boolean onInteger(long value)
throws Exception
`-1`,`0` or `9223372036854775807`.value - the integer value as longtrue if the parsing should be continued, false if it should be
stopped immediatelyException - if an error occurred during handlingCopyright © 2014. All rights reserved.