Read the next element of the JSON input stream as an instant. @deprecated Instant is not a basic JSON type, use the InstantCoercer instead. @return Instant object @throws JsonException if the next element isn't a Long @throws UncheckedIOException if an I/O exception is encou
()
| 329 | * @throws UncheckedIOException if an I/O exception is encountered |
| 330 | */ |
| 331 | @Deprecated(forRemoval = true) |
| 332 | public @Nullable Instant nextInstant() { |
| 333 | Long time = read(Long.class); |
| 334 | return (null != time) ? Instant.ofEpochSecond(time) : null; |
| 335 | } |
| 336 | |
| 337 | /** |
| 338 | * Read the next element of the JSON input stream and expect the end of the input. |