org.codehaus.jackson.map
public class MappingIterator<T> extends Object implements Iterator<T>
ObjectMapper
when binding sequence of
objects. Extension is done to allow more convenient exposing of
IOException
(which basic Iterator
does not expose)Modifier and Type | Field and Description |
---|---|
protected DeserializationContext |
_context |
protected JsonDeserializer<T> |
_deserializer |
protected JsonParser |
_parser |
protected JavaType |
_type |
protected static MappingIterator<?> |
EMPTY_ITERATOR |
Modifier | Constructor and Description |
---|---|
protected |
MappingIterator(JavaType type,
JsonParser jp,
DeserializationContext ctxt,
JsonDeserializer<?> deser) |
Modifier and Type | Method and Description |
---|---|
protected static <T> MappingIterator<T> |
emptyIterator() |
boolean |
hasNext() |
boolean |
hasNextValue()
Equivalent of
next() but one that may throw checked
exceptions from Jackson due to invalid input. |
T |
next() |
T |
nextValue() |
void |
remove() |
protected static final MappingIterator<?> EMPTY_ITERATOR
protected final JavaType _type
protected final DeserializationContext _context
protected final JsonDeserializer<T> _deserializer
protected final JsonParser _parser
protected MappingIterator(JavaType type, JsonParser jp, DeserializationContext ctxt, JsonDeserializer<?> deser)
protected static <T> MappingIterator<T> emptyIterator()
public boolean hasNextValue() throws IOException
next()
but one that may throw checked
exceptions from Jackson due to invalid input.IOException
public T nextValue() throws IOException
IOException