org.codehaus.jackson.map
Class MappingIterator<T>
java.lang.Object
org.codehaus.jackson.map.MappingIterator<T>
- All Implemented Interfaces:
- Iterator<T>
public class MappingIterator<T>
- extends Object
- implements Iterator<T>
Iterator exposed by ObjectMapper
when binding sequence of
objects. Extension is done to allow more convenient exposing of
IOException
(which basic Iterator
does not expose)
- Since:
- 1.8
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_ITERATOR
protected static final MappingIterator<?> EMPTY_ITERATOR
_type
protected final JavaType _type
_context
protected final DeserializationContext _context
_deserializer
protected final JsonDeserializer<T> _deserializer
_parser
protected final JsonParser _parser
MappingIterator
protected MappingIterator(JavaType type,
JsonParser jp,
DeserializationContext ctxt,
JsonDeserializer<?> deser)
emptyIterator
protected static <T> MappingIterator<T> emptyIterator()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<T>
next
public T next()
- Specified by:
next
in interface Iterator<T>
remove
public void remove()
- Specified by:
remove
in interface Iterator<T>
hasNextValue
public boolean hasNextValue()
throws IOException
- Equivalent of
next()
but one that may throw checked
exceptions from Jackson due to invalid input.
- Throws:
IOException
nextValue
public T nextValue()
throws IOException
- Throws:
IOException