1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_25) on Sat Nov 16 21:43:16 PST 2013 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>MappingIterator (jackson-databind 2.3.0 API)</title> 8<meta name="date" content="2013-11-16"> 9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 10</head> 11<body> 12<script type="text/javascript"><!-- 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="MappingIterator (jackson-databind 2.3.0 API)"; 15 } 16//--> 17</script> 18<noscript> 19<div>JavaScript is disabled on your browser.</div> 20</noscript> 21<!-- ========= START OF TOP NAVBAR ======= --> 22<div class="topNav"><a name="navbar_top"> 23<!-- --> 24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 25<!-- --> 26</a> 27<ul class="navList" title="Navigation"> 28<li><a href="../../../../overview-summary.html">Overview</a></li> 29<li><a href="package-summary.html">Package</a></li> 30<li class="navBarCell1Rev">Class</li> 31<li><a href="class-use/MappingIterator.html">Use</a></li> 32<li><a href="package-tree.html">Tree</a></li> 33<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 34<li><a href="../../../../index-all.html">Index</a></li> 35<li><a href="../../../../help-doc.html">Help</a></li> 36</ul> 37</div> 38<div class="subNav"> 39<ul class="navList"> 40<li><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../com/fasterxml/jackson/databind/MappingJsonFactory.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../index.html?com/fasterxml/jackson/databind/MappingIterator.html" target="_top">Frames</a></li> 45<li><a href="MappingIterator.html" target="_top">No Frames</a></li> 46</ul> 47<ul class="navList" id="allclasses_navbar_top"> 48<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 49</ul> 50<div> 51<script type="text/javascript"><!-- 52 allClassesLink = document.getElementById("allclasses_navbar_top"); 53 if(window==top) { 54 allClassesLink.style.display = "block"; 55 } 56 else { 57 allClassesLink.style.display = "none"; 58 } 59 //--> 60</script> 61</div> 62<div> 63<ul class="subNavList"> 64<li>Summary: </li> 65<li>Nested | </li> 66<li><a href="#field_summary">Field</a> | </li> 67<li><a href="#constructor_summary">Constr</a> | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li><a href="#field_detail">Field</a> | </li> 73<li><a href="#constructor_detail">Constr</a> | </li> 74<li><a href="#method_detail">Method</a></li> 75</ul> 76</div> 77<a name="skip-navbar_top"> 78<!-- --> 79</a></div> 80<!-- ========= END OF TOP NAVBAR ========= --> 81<!-- ======== START OF CLASS DATA ======== --> 82<div class="header"> 83<div class="subTitle">com.fasterxml.jackson.databind</div> 84<h2 title="Class MappingIterator" class="title">Class MappingIterator<T></h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 89<li> 90<ul class="inheritance"> 91<li>com.fasterxml.jackson.databind.MappingIterator<T></li> 92</ul> 93</li> 94</ul> 95<div class="description"> 96<ul class="blockList"> 97<li class="blockList"> 98<dl> 99<dt>All Implemented Interfaces:</dt> 100<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T></dd> 101</dl> 102<hr> 103<br> 104<pre>public class <span class="strong">MappingIterator<T></span> 105extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> 106implements <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T>, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></pre> 107<div class="block">Iterator exposed by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> when binding sequence of 108 objects. Extension is done to allow more convenient exposing of 109 <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a> (which basic <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><code>Iterator</code></a> does not expose)</div> 110</li> 111</ul> 112</div> 113<div class="summary"> 114<ul class="blockList"> 115<li class="blockList"> 116<!-- =========== FIELD SUMMARY =========== --> 117<ul class="blockList"> 118<li class="blockList"><a name="field_summary"> 119<!-- --> 120</a> 121<h3>Field Summary</h3> 122<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 123<caption><span>Fields</span><span class="tabEnd"> </span></caption> 124<tr> 125<th class="colFirst" scope="col">Modifier and Type</th> 126<th class="colLast" scope="col">Field and Description</th> 127</tr> 128<tr class="altColor"> 129<td class="colFirst"><code>protected boolean</code></td> 130<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#_closeParser">_closeParser</a></strong></code> 131<div class="block">Flag that indicates whether input <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonParser</code></a> should be closed 132 when we are done or not; generally only called when caller did not 133 pass JsonParser.</div> 134</td> 135</tr> 136<tr class="rowColor"> 137<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/DeserializationContext.html" title="class in com.fasterxml.jackson.databind">DeserializationContext</a></code></td> 138<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#_context">_context</a></strong></code> </td> 139</tr> 140<tr class="altColor"> 141<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/JsonDeserializer.html" title="class in com.fasterxml.jackson.databind">JsonDeserializer</a><<a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>></code></td> 142<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#_deserializer">_deserializer</a></strong></code> </td> 143</tr> 144<tr class="rowColor"> 145<td class="colFirst"><code>protected boolean</code></td> 146<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#_hasNextChecked">_hasNextChecked</a></strong></code> 147<div class="block">Flag that is set when we have determined what <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#hasNextValue()"><code>hasNextValue()</code></a> 148 should value; reset when <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#nextValue()"><code>nextValue()</code></a> is called</div> 149</td> 150</tr> 151<tr class="altColor"> 152<td class="colFirst"><code>protected <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a></code></td> 153<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#_parser">_parser</a></strong></code> </td> 154</tr> 155<tr class="rowColor"> 156<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a></code></td> 157<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#_type">_type</a></strong></code> </td> 158</tr> 159<tr class="altColor"> 160<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a></code></td> 161<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#_updatedValue">_updatedValue</a></strong></code> 162<div class="block">If not null, "value to update" instead of creating a new instance 163 for each call.</div> 164</td> 165</tr> 166<tr class="rowColor"> 167<td class="colFirst"><code>protected static <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="class in com.fasterxml.jackson.databind">MappingIterator</a><?></code></td> 168<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#EMPTY_ITERATOR">EMPTY_ITERATOR</a></strong></code> </td> 169</tr> 170</table> 171</li> 172</ul> 173<!-- ======== CONSTRUCTOR SUMMARY ======== --> 174<ul class="blockList"> 175<li class="blockList"><a name="constructor_summary"> 176<!-- --> 177</a> 178<h3>Constructor Summary</h3> 179<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 180<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 181<tr> 182<th class="colFirst" scope="col">Modifier</th> 183<th class="colLast" scope="col">Constructor and Description</th> 184</tr> 185<tr class="altColor"> 186<td class="colFirst"><code>protected </code></td> 187<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#MappingIterator(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext, com.fasterxml.jackson.databind.JsonDeserializer)">MappingIterator</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 188 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a> jp, 189 <a href="../../../../com/fasterxml/jackson/databind/DeserializationContext.html" title="class in com.fasterxml.jackson.databind">DeserializationContext</a> ctxt, 190 <a href="../../../../com/fasterxml/jackson/databind/JsonDeserializer.html" title="class in com.fasterxml.jackson.databind">JsonDeserializer</a><?> deser)</code> 191<div class="block"><strong>Deprecated.</strong> 192<div class="block"><i>Since 2.1, to be removed</i></div> 193</div> 194</td> 195</tr> 196<tr class="rowColor"> 197<td class="colFirst"><code>protected </code></td> 198<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#MappingIterator(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext, com.fasterxml.jackson.databind.JsonDeserializer, boolean, java.lang.Object)">MappingIterator</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 199 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a> jp, 200 <a href="../../../../com/fasterxml/jackson/databind/DeserializationContext.html" title="class in com.fasterxml.jackson.databind">DeserializationContext</a> ctxt, 201 <a href="../../../../com/fasterxml/jackson/databind/JsonDeserializer.html" title="class in com.fasterxml.jackson.databind">JsonDeserializer</a><?> deser, 202 boolean managedParser, 203 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> valueToUpdate)</code> </td> 204</tr> 205</table> 206</li> 207</ul> 208<!-- ========== METHOD SUMMARY =========== --> 209<ul class="blockList"> 210<li class="blockList"><a name="method_summary"> 211<!-- --> 212</a> 213<h3>Method Summary</h3> 214<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 215<caption><span>Methods</span><span class="tabEnd"> </span></caption> 216<tr> 217<th class="colFirst" scope="col">Modifier and Type</th> 218<th class="colLast" scope="col">Method and Description</th> 219</tr> 220<tr class="altColor"> 221<td class="colFirst"><code>void</code></td> 222<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#close()">close</a></strong>()</code> </td> 223</tr> 224<tr class="rowColor"> 225<td class="colFirst"><code>protected static <T> <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="class in com.fasterxml.jackson.databind">MappingIterator</a><T></code></td> 226<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#emptyIterator()">emptyIterator</a></strong>()</code> </td> 227</tr> 228<tr class="altColor"> 229<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonLocation.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonLocation</a></code></td> 230<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#getCurrentLocation()">getCurrentLocation</a></strong>()</code> 231<div class="block">Convenience method, functionally equivalent to: 232<code> 233 iterator.getParser().getCurrentLocation() 234</code></div> 235</td> 236</tr> 237<tr class="rowColor"> 238<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a></code></td> 239<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#getParser()">getParser</a></strong>()</code> 240<div class="block">Accessor for getting underlying parser this iterator uses.</div> 241</td> 242</tr> 243<tr class="altColor"> 244<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a></code></td> 245<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#getParserSchema()">getParserSchema</a></strong>()</code> 246<div class="block">Accessor for accessing <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>FormatSchema</code></a> that the underlying parser 247 (as per <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#getParser()"><code>getParser()</code></a>) is using, if any; only parser of schema-aware 248 formats use schemas.</div> 249</td> 250</tr> 251<tr class="rowColor"> 252<td class="colFirst"><code>boolean</code></td> 253<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#hasNext()">hasNext</a></strong>()</code> </td> 254</tr> 255<tr class="altColor"> 256<td class="colFirst"><code>boolean</code></td> 257<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#hasNextValue()">hasNextValue</a></strong>()</code> 258<div class="block">Equivalent of <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#next()"><code>next()</code></a> but one that may throw checked 259 exceptions from Jackson due to invalid input.</div> 260</td> 261</tr> 262<tr class="rowColor"> 263<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a></code></td> 264<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#next()">next</a></strong>()</code> </td> 265</tr> 266<tr class="altColor"> 267<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a></code></td> 268<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#nextValue()">nextValue</a></strong>()</code> </td> 269</tr> 270<tr class="rowColor"> 271<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>></code></td> 272<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#readAll()">readAll</a></strong>()</code> 273<div class="block">Convenience method for reading all entries accessible via 274 this iterator</div> 275</td> 276</tr> 277<tr class="altColor"> 278<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>></code></td> 279<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#readAll(java.util.List)">readAll</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>> resultList)</code> 280<div class="block">Convenience method for reading all entries accessible via 281 this iterator</div> 282</td> 283</tr> 284<tr class="rowColor"> 285<td class="colFirst"><code>void</code></td> 286<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#remove()">remove</a></strong>()</code> </td> 287</tr> 288</table> 289<ul class="blockList"> 290<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 291<!-- --> 292</a> 293<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 294<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 295</ul> 296</li> 297</ul> 298</li> 299</ul> 300</div> 301<div class="details"> 302<ul class="blockList"> 303<li class="blockList"> 304<!-- ============ FIELD DETAIL =========== --> 305<ul class="blockList"> 306<li class="blockList"><a name="field_detail"> 307<!-- --> 308</a> 309<h3>Field Detail</h3> 310<a name="EMPTY_ITERATOR"> 311<!-- --> 312</a> 313<ul class="blockList"> 314<li class="blockList"> 315<h4>EMPTY_ITERATOR</h4> 316<pre>protected static final <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="class in com.fasterxml.jackson.databind">MappingIterator</a><?> EMPTY_ITERATOR</pre> 317</li> 318</ul> 319<a name="_type"> 320<!-- --> 321</a> 322<ul class="blockList"> 323<li class="blockList"> 324<h4>_type</h4> 325<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> _type</pre> 326</li> 327</ul> 328<a name="_context"> 329<!-- --> 330</a> 331<ul class="blockList"> 332<li class="blockList"> 333<h4>_context</h4> 334<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/DeserializationContext.html" title="class in com.fasterxml.jackson.databind">DeserializationContext</a> _context</pre> 335</li> 336</ul> 337<a name="_deserializer"> 338<!-- --> 339</a> 340<ul class="blockList"> 341<li class="blockList"> 342<h4>_deserializer</h4> 343<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/JsonDeserializer.html" title="class in com.fasterxml.jackson.databind">JsonDeserializer</a><<a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>> _deserializer</pre> 344</li> 345</ul> 346<a name="_parser"> 347<!-- --> 348</a> 349<ul class="blockList"> 350<li class="blockList"> 351<h4>_parser</h4> 352<pre>protected <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a> _parser</pre> 353</li> 354</ul> 355<a name="_closeParser"> 356<!-- --> 357</a> 358<ul class="blockList"> 359<li class="blockList"> 360<h4>_closeParser</h4> 361<pre>protected final boolean _closeParser</pre> 362<div class="block">Flag that indicates whether input <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonParser</code></a> should be closed 363 when we are done or not; generally only called when caller did not 364 pass JsonParser.</div> 365</li> 366</ul> 367<a name="_hasNextChecked"> 368<!-- --> 369</a> 370<ul class="blockList"> 371<li class="blockList"> 372<h4>_hasNextChecked</h4> 373<pre>protected boolean _hasNextChecked</pre> 374<div class="block">Flag that is set when we have determined what <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#hasNextValue()"><code>hasNextValue()</code></a> 375 should value; reset when <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#nextValue()"><code>nextValue()</code></a> is called</div> 376</li> 377</ul> 378<a name="_updatedValue"> 379<!-- --> 380</a> 381<ul class="blockListLast"> 382<li class="blockList"> 383<h4>_updatedValue</h4> 384<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a> _updatedValue</pre> 385<div class="block">If not null, "value to update" instead of creating a new instance 386 for each call.</div> 387</li> 388</ul> 389</li> 390</ul> 391<!-- ========= CONSTRUCTOR DETAIL ======== --> 392<ul class="blockList"> 393<li class="blockList"><a name="constructor_detail"> 394<!-- --> 395</a> 396<h3>Constructor Detail</h3> 397<a name="MappingIterator(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext, com.fasterxml.jackson.databind.JsonDeserializer)"> 398<!-- --> 399</a> 400<ul class="blockList"> 401<li class="blockList"> 402<h4>MappingIterator</h4> 403<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 404protected MappingIterator(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 405 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a> jp, 406 <a href="../../../../com/fasterxml/jackson/databind/DeserializationContext.html" title="class in com.fasterxml.jackson.databind">DeserializationContext</a> ctxt, 407 <a href="../../../../com/fasterxml/jackson/databind/JsonDeserializer.html" title="class in com.fasterxml.jackson.databind">JsonDeserializer</a><?> deser)</pre> 408<div class="block"><span class="strong">Deprecated.</span> <i>Since 2.1, to be removed</i></div> 409</li> 410</ul> 411<a name="MappingIterator(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext, com.fasterxml.jackson.databind.JsonDeserializer, boolean, java.lang.Object)"> 412<!-- --> 413</a> 414<ul class="blockListLast"> 415<li class="blockList"> 416<h4>MappingIterator</h4> 417<pre>protected MappingIterator(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 418 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a> jp, 419 <a href="../../../../com/fasterxml/jackson/databind/DeserializationContext.html" title="class in com.fasterxml.jackson.databind">DeserializationContext</a> ctxt, 420 <a href="../../../../com/fasterxml/jackson/databind/JsonDeserializer.html" title="class in com.fasterxml.jackson.databind">JsonDeserializer</a><?> deser, 421 boolean managedParser, 422 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> valueToUpdate)</pre> 423<dl><dt><span class="strong">Parameters:</span></dt><dd><code>managedParser</code> - Whether we "own" the <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonParser</code></a> passed or not: 424 if true, it was created by <a href="../../../../com/fasterxml/jackson/databind/ObjectReader.html" title="class in com.fasterxml.jackson.databind"><code>ObjectReader</code></a> and code here needs to 425 close it; if false, it was passed by calling code and should not be 426 closed by iterator.</dd></dl> 427</li> 428</ul> 429</li> 430</ul> 431<!-- ============ METHOD DETAIL ========== --> 432<ul class="blockList"> 433<li class="blockList"><a name="method_detail"> 434<!-- --> 435</a> 436<h3>Method Detail</h3> 437<a name="emptyIterator()"> 438<!-- --> 439</a> 440<ul class="blockList"> 441<li class="blockList"> 442<h4>emptyIterator</h4> 443<pre>protected static <T> <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="class in com.fasterxml.jackson.databind">MappingIterator</a><T> emptyIterator()</pre> 444</li> 445</ul> 446<a name="hasNext()"> 447<!-- --> 448</a> 449<ul class="blockList"> 450<li class="blockList"> 451<h4>hasNext</h4> 452<pre>public boolean hasNext()</pre> 453<dl> 454<dt><strong>Specified by:</strong></dt> 455<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true#hasNext()" title="class or interface in java.util">hasNext</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>></code></dd> 456</dl> 457</li> 458</ul> 459<a name="next()"> 460<!-- --> 461</a> 462<ul class="blockList"> 463<li class="blockList"> 464<h4>next</h4> 465<pre>public <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a> next()</pre> 466<dl> 467<dt><strong>Specified by:</strong></dt> 468<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true#next()" title="class or interface in java.util">next</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>></code></dd> 469</dl> 470</li> 471</ul> 472<a name="remove()"> 473<!-- --> 474</a> 475<ul class="blockList"> 476<li class="blockList"> 477<h4>remove</h4> 478<pre>public void remove()</pre> 479<dl> 480<dt><strong>Specified by:</strong></dt> 481<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true#remove()" title="class or interface in java.util">remove</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>></code></dd> 482</dl> 483</li> 484</ul> 485<a name="close()"> 486<!-- --> 487</a> 488<ul class="blockList"> 489<li class="blockList"> 490<h4>close</h4> 491<pre>public void close() 492 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 493<dl> 494<dt><strong>Specified by:</strong></dt> 495<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true#close()" title="class or interface in java.io">close</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></code></dd> 496<dt><strong>Specified by:</strong></dt> 497<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/AutoCloseable.html?is-external=true#close()" title="class or interface in java.lang">close</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></dd> 498<dt><span class="strong">Throws:</span></dt> 499<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 500</li> 501</ul> 502<a name="hasNextValue()"> 503<!-- --> 504</a> 505<ul class="blockList"> 506<li class="blockList"> 507<h4>hasNextValue</h4> 508<pre>public boolean hasNextValue() 509 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 510<div class="block">Equivalent of <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#next()"><code>next()</code></a> but one that may throw checked 511 exceptions from Jackson due to invalid input.</div> 512<dl><dt><span class="strong">Throws:</span></dt> 513<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 514</li> 515</ul> 516<a name="nextValue()"> 517<!-- --> 518</a> 519<ul class="blockList"> 520<li class="blockList"> 521<h4>nextValue</h4> 522<pre>public <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a> nextValue() 523 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 524<dl><dt><span class="strong">Throws:</span></dt> 525<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 526</li> 527</ul> 528<a name="readAll()"> 529<!-- --> 530</a> 531<ul class="blockList"> 532<li class="blockList"> 533<h4>readAll</h4> 534<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>> readAll() 535 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 536<div class="block">Convenience method for reading all entries accessible via 537 this iterator</div> 538<dl><dt><span class="strong">Returns:</span></dt><dd>List of entries read</dd> 539<dt><span class="strong">Throws:</span></dt> 540<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt> 541 <dd>2.2</dd></dl> 542</li> 543</ul> 544<a name="readAll(java.util.List)"> 545<!-- --> 546</a> 547<ul class="blockList"> 548<li class="blockList"> 549<h4>readAll</h4> 550<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>> readAll(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>> resultList) 551 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 552<div class="block">Convenience method for reading all entries accessible via 553 this iterator</div> 554<dl><dt><span class="strong">Returns:</span></dt><dd>List of entries read (same as passed-in argument)</dd> 555<dt><span class="strong">Throws:</span></dt> 556<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt> 557 <dd>2.2</dd></dl> 558</li> 559</ul> 560<a name="getParser()"> 561<!-- --> 562</a> 563<ul class="blockList"> 564<li class="blockList"> 565<h4>getParser</h4> 566<pre>public <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</a> getParser()</pre> 567<div class="block">Accessor for getting underlying parser this iterator uses.</div> 568<dl><dt><span class="strong">Since:</span></dt> 569 <dd>2.2</dd></dl> 570</li> 571</ul> 572<a name="getParserSchema()"> 573<!-- --> 574</a> 575<ul class="blockList"> 576<li class="blockList"> 577<h4>getParserSchema</h4> 578<pre>public <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a> getParserSchema()</pre> 579<div class="block">Accessor for accessing <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>FormatSchema</code></a> that the underlying parser 580 (as per <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#getParser()"><code>getParser()</code></a>) is using, if any; only parser of schema-aware 581 formats use schemas.</div> 582<dl><dt><span class="strong">Since:</span></dt> 583 <dd>2.2</dd></dl> 584</li> 585</ul> 586<a name="getCurrentLocation()"> 587<!-- --> 588</a> 589<ul class="blockListLast"> 590<li class="blockList"> 591<h4>getCurrentLocation</h4> 592<pre>public <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonLocation.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonLocation</a> getCurrentLocation()</pre> 593<div class="block">Convenience method, functionally equivalent to: 594<code> 595 iterator.getParser().getCurrentLocation() 596</code></div> 597<dl><dt><span class="strong">Returns:</span></dt><dd>Location of the input stream of the underlying parser</dd><dt><span class="strong">Since:</span></dt> 598 <dd>2.2.1</dd></dl> 599</li> 600</ul> 601</li> 602</ul> 603</li> 604</ul> 605</div> 606</div> 607<!-- ========= END OF CLASS DATA ========= --> 608<!-- ======= START OF BOTTOM NAVBAR ====== --> 609<div class="bottomNav"><a name="navbar_bottom"> 610<!-- --> 611</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 612<!-- --> 613</a> 614<ul class="navList" title="Navigation"> 615<li><a href="../../../../overview-summary.html">Overview</a></li> 616<li><a href="package-summary.html">Package</a></li> 617<li class="navBarCell1Rev">Class</li> 618<li><a href="class-use/MappingIterator.html">Use</a></li> 619<li><a href="package-tree.html">Tree</a></li> 620<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 621<li><a href="../../../../index-all.html">Index</a></li> 622<li><a href="../../../../help-doc.html">Help</a></li> 623</ul> 624</div> 625<div class="subNav"> 626<ul class="navList"> 627<li><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 628<li><a href="../../../../com/fasterxml/jackson/databind/MappingJsonFactory.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 629</ul> 630<ul class="navList"> 631<li><a href="../../../../index.html?com/fasterxml/jackson/databind/MappingIterator.html" target="_top">Frames</a></li> 632<li><a href="MappingIterator.html" target="_top">No Frames</a></li> 633</ul> 634<ul class="navList" id="allclasses_navbar_bottom"> 635<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 636</ul> 637<div> 638<script type="text/javascript"><!-- 639 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 640 if(window==top) { 641 allClassesLink.style.display = "block"; 642 } 643 else { 644 allClassesLink.style.display = "none"; 645 } 646 //--> 647</script> 648</div> 649<div> 650<ul class="subNavList"> 651<li>Summary: </li> 652<li>Nested | </li> 653<li><a href="#field_summary">Field</a> | </li> 654<li><a href="#constructor_summary">Constr</a> | </li> 655<li><a href="#method_summary">Method</a></li> 656</ul> 657<ul class="subNavList"> 658<li>Detail: </li> 659<li><a href="#field_detail">Field</a> | </li> 660<li><a href="#constructor_detail">Constr</a> | </li> 661<li><a href="#method_detail">Method</a></li> 662</ul> 663</div> 664<a name="skip-navbar_bottom"> 665<!-- --> 666</a></div> 667<!-- ======== END OF BOTTOM NAVBAR ======= --> 668<p class="legalCopy"><small>Copyright © 2012-2013 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 669</body> 670</html> 671