Helper for reading lazily reading objects out of a source of
JsonEvents representing a JSON array. Calling hasNext can throw
any JsonLexException. Calling next() can throw any JSON lex or parse
exception, or ElementDecodeException if the data in the array cannot be
decoded as a T at that point. In the latter case, the iterator is still
valid and positioned as if the decode had succeeded so it can continue to
be used.
returns
An iterator of Ts
Exceptions thrown
JsonBadParse if alreadyInArray is false and the first event is not a StartOfArrayEvent
JsonLexException if alreadyInArray is false and a lexing exception or EOF occurs.
Helper for reading lazily reading objects out of a source of
JsonEvent
s representing a JSON array. CallinghasNext
can throw anyJsonLexException
. Callingnext()
can throw any JSON lex or parse exception, orElementDecodeException
if the data in the array cannot be decoded as aT
at that point. In the latter case, the iterator is still valid and positioned as if the decode had succeeded so it can continue to be used.An iterator of
T
sJsonBadParse
ifalreadyInArray
is false and the first event is not aStartOfArrayEvent
JsonLexException
ifalreadyInArray
is false and a lexing exception or EOF occurs.