public interface FloatingHandler extends JsonHandlerBase
`3.14` or `9.223372E-18`.
Use this handler, only if 1) exact precision doesn't matter and the JSON input doesn't contain
values out of Java's double representable range, 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 FloatingHandler simultaneously.
| Modifier and Type | Method and Description |
|---|---|
boolean |
onFloating(double value)
Handles a JSON array, object or standalone (top-level) floating number value: for example,
`3.14` or `9.223372E-18`. |
boolean onFloating(double value)
throws IOException
`3.14` or `9.223372E-18`.value - the floating value as double,
or the nearest value representable as doubletrue if the parsing should be continued, false if it should be
stopped immediatelyIOException - if an error occurred during handlingCopyright © 2015. All rights reserved.