java.util.Iterator<T>public class MappingIterator<T>
extends java.lang.Object
implements java.util.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 | Description |
|---|---|---|
protected DeserializationContext |
_context |
|
protected JsonDeserializer<T> |
_deserializer |
|
protected JsonParser |
_parser |
|
protected JavaType |
_type |
|
protected static MappingIterator<?> |
EMPTY_ITERATOR |
| Modifier | Constructor | Description |
|---|---|---|
protected |
MappingIterator(JavaType type,
JsonParser jp,
DeserializationContext ctxt,
JsonDeserializer<?> deser) |
| Modifier and Type | Method | 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 hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>public boolean hasNextValue()
throws java.io.IOException
next() but one that may throw checked
exceptions from Jackson due to invalid input.java.io.IOExceptionpublic T nextValue() throws java.io.IOException
java.io.IOException