| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.jackson.databind.MappingIterator<T>
public class MappingIterator<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)
| Field Summary | |
|---|---|
| protected  boolean | _closeParserFlag that indicates whether input JsonParsershould be closed
 when we are done or not; generally only called when caller did not
 pass JsonParser. | 
| protected  DeserializationContext | _context | 
| protected  JsonDeserializer<T> | _deserializer | 
| protected  boolean | _hasNextCheckedFlag that is set when we have determined what hasNextValue()should value; reset whennextValue()is called | 
| protected  JsonParser | _parser | 
| protected  JavaType | _type | 
| protected  T | _updatedValueIf not null, "value to update" instead of creating a new instance for each call. | 
| protected static MappingIterator<?> | EMPTY_ITERATOR | 
| Constructor Summary | |
|---|---|
| protected  | MappingIterator(JavaType type,
                JsonParser jp,
                DeserializationContext ctxt,
                JsonDeserializer<?> deser)Deprecated. Since 2.1, to be removed | 
| protected  | MappingIterator(JavaType type,
                JsonParser jp,
                DeserializationContext ctxt,
                JsonDeserializer<?> deser,
                boolean managedParser,
                Object valueToUpdate) | 
| Method Summary | ||
|---|---|---|
|  void | close() | |
| protected static
 | 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() | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final MappingIterator<?> EMPTY_ITERATOR
protected final JavaType _type
protected final DeserializationContext _context
protected final JsonDeserializer<T> _deserializer
protected JsonParser _parser
protected final boolean _closeParser
JsonParser should be closed
 when we are done or not; generally only called when caller did not
 pass JsonParser.
protected boolean _hasNextChecked
hasNextValue()
 should value; reset when nextValue() is called
protected final T _updatedValue
| Constructor Detail | 
|---|
@Deprecated
protected MappingIterator(JavaType type,
                                     JsonParser jp,
                                     DeserializationContext ctxt,
                                     JsonDeserializer<?> deser)
protected MappingIterator(JavaType type,
                          JsonParser jp,
                          DeserializationContext ctxt,
                          JsonDeserializer<?> deser,
                          boolean managedParser,
                          Object valueToUpdate)
managedParser - Whether we "own" the JsonParser passed or not:
   if true, it was created by ObjectReader and code here needs to
   close it; if false, it was passed by calling code and should not be
   closed by iterator.| Method Detail | 
|---|
protected static <T> MappingIterator<T> emptyIterator()
public boolean hasNext()
hasNext in interface Iterator<T>public T next()
next in interface Iterator<T>public void remove()
remove in interface Iterator<T>
public void close()
           throws IOException
close in interface CloseableIOException
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| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||