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 Thu Jan 01 17:43:55 PST 2015 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>MappingIterator (jackson-databind 2.5.0 API)</title> 8<meta name="date" content="2015-01-01"> 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.5.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 <code>JsonParser</code> 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 com.fasterxml.jackson.core.JsonParser</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 com.fasterxml.jackson.core.JsonParser 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 com.fasterxml.jackson.core.JsonParser 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>protected <R> R</code></td> 222<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#_handleIOException(java.io.IOException)">_handleIOException</a></strong>(<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> e)</code> </td> 223</tr> 224<tr class="rowColor"> 225<td class="colFirst"><code>protected <R> R</code></td> 226<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#_handleMappingException(com.fasterxml.jackson.databind.JsonMappingException)">_handleMappingException</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a> e)</code> </td> 227</tr> 228<tr class="altColor"> 229<td class="colFirst"><code>protected <R> R</code></td> 230<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#_throwNoSuchElement()">_throwNoSuchElement</a></strong>()</code> </td> 231</tr> 232<tr class="rowColor"> 233<td class="colFirst"><code>void</code></td> 234<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#close()">close</a></strong>()</code> </td> 235</tr> 236<tr class="altColor"> 237<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> 238<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#emptyIterator()">emptyIterator</a></strong>()</code> </td> 239</tr> 240<tr class="rowColor"> 241<td class="colFirst"><code>com.fasterxml.jackson.core.JsonLocation</code></td> 242<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#getCurrentLocation()">getCurrentLocation</a></strong>()</code> 243<div class="block">Convenience method, functionally equivalent to: 244<code> 245 iterator.getParser().getCurrentLocation() 246</code></div> 247</td> 248</tr> 249<tr class="altColor"> 250<td class="colFirst"><code>com.fasterxml.jackson.core.JsonParser</code></td> 251<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#getParser()">getParser</a></strong>()</code> 252<div class="block">Accessor for getting underlying parser this iterator uses.</div> 253</td> 254</tr> 255<tr class="rowColor"> 256<td class="colFirst"><code>com.fasterxml.jackson.core.FormatSchema</code></td> 257<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#getParserSchema()">getParserSchema</a></strong>()</code> 258<div class="block">Accessor for accessing <code>FormatSchema</code> that the underlying parser 259 (as per <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#getParser()"><code>getParser()</code></a>) is using, if any; only parser of schema-aware 260 formats use schemas.</div> 261</td> 262</tr> 263<tr class="altColor"> 264<td class="colFirst"><code>boolean</code></td> 265<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#hasNext()">hasNext</a></strong>()</code> </td> 266</tr> 267<tr class="rowColor"> 268<td class="colFirst"><code>boolean</code></td> 269<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#hasNextValue()">hasNextValue</a></strong>()</code> 270<div class="block">Equivalent of <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#next()"><code>next()</code></a> but one that may throw checked 271 exceptions from Jackson due to invalid input.</div> 272</td> 273</tr> 274<tr class="altColor"> 275<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a></code></td> 276<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#next()">next</a></strong>()</code> </td> 277</tr> 278<tr class="rowColor"> 279<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a></code></td> 280<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#nextValue()">nextValue</a></strong>()</code> </td> 281</tr> 282<tr class="altColor"> 283<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> 284<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#readAll()">readAll</a></strong>()</code> 285<div class="block">Convenience method for reading all entries accessible via 286 this iterator; resulting container will be a <a href="http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util"><code>ArrayList</code></a>.</div> 287</td> 288</tr> 289<tr class="rowColor"> 290<td class="colFirst"><code><C extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><? super <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>>> <br>C</code></td> 291<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#readAll(C)">readAll</a></strong>(C results)</code> 292<div class="block">Convenience method for reading all entries accessible via 293 this iterator</div> 294</td> 295</tr> 296<tr class="altColor"> 297<td class="colFirst"><code><L extends <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><? super <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>>> <br>L</code></td> 298<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#readAll(L)">readAll</a></strong>(L resultList)</code> 299<div class="block">Convenience method for reading all entries accessible via 300 this iterator</div> 301</td> 302</tr> 303<tr class="rowColor"> 304<td class="colFirst"><code>void</code></td> 305<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#remove()">remove</a></strong>()</code> </td> 306</tr> 307</table> 308<ul class="blockList"> 309<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 310<!-- --> 311</a> 312<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> 313<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> 314</ul> 315</li> 316</ul> 317</li> 318</ul> 319</div> 320<div class="details"> 321<ul class="blockList"> 322<li class="blockList"> 323<!-- ============ FIELD DETAIL =========== --> 324<ul class="blockList"> 325<li class="blockList"><a name="field_detail"> 326<!-- --> 327</a> 328<h3>Field Detail</h3> 329<a name="EMPTY_ITERATOR"> 330<!-- --> 331</a> 332<ul class="blockList"> 333<li class="blockList"> 334<h4>EMPTY_ITERATOR</h4> 335<pre>protected static final <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="class in com.fasterxml.jackson.databind">MappingIterator</a><?> EMPTY_ITERATOR</pre> 336</li> 337</ul> 338<a name="_type"> 339<!-- --> 340</a> 341<ul class="blockList"> 342<li class="blockList"> 343<h4>_type</h4> 344<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> _type</pre> 345</li> 346</ul> 347<a name="_context"> 348<!-- --> 349</a> 350<ul class="blockList"> 351<li class="blockList"> 352<h4>_context</h4> 353<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/DeserializationContext.html" title="class in com.fasterxml.jackson.databind">DeserializationContext</a> _context</pre> 354</li> 355</ul> 356<a name="_deserializer"> 357<!-- --> 358</a> 359<ul class="blockList"> 360<li class="blockList"> 361<h4>_deserializer</h4> 362<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> 363</li> 364</ul> 365<a name="_parser"> 366<!-- --> 367</a> 368<ul class="blockList"> 369<li class="blockList"> 370<h4>_parser</h4> 371<pre>protected com.fasterxml.jackson.core.JsonParser _parser</pre> 372</li> 373</ul> 374<a name="_closeParser"> 375<!-- --> 376</a> 377<ul class="blockList"> 378<li class="blockList"> 379<h4>_closeParser</h4> 380<pre>protected final boolean _closeParser</pre> 381<div class="block">Flag that indicates whether input <code>JsonParser</code> should be closed 382 when we are done or not; generally only called when caller did not 383 pass JsonParser.</div> 384</li> 385</ul> 386<a name="_hasNextChecked"> 387<!-- --> 388</a> 389<ul class="blockList"> 390<li class="blockList"> 391<h4>_hasNextChecked</h4> 392<pre>protected boolean _hasNextChecked</pre> 393<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> 394 should value; reset when <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#nextValue()"><code>nextValue()</code></a> is called</div> 395</li> 396</ul> 397<a name="_updatedValue"> 398<!-- --> 399</a> 400<ul class="blockListLast"> 401<li class="blockList"> 402<h4>_updatedValue</h4> 403<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a> _updatedValue</pre> 404<div class="block">If not null, "value to update" instead of creating a new instance 405 for each call.</div> 406</li> 407</ul> 408</li> 409</ul> 410<!-- ========= CONSTRUCTOR DETAIL ======== --> 411<ul class="blockList"> 412<li class="blockList"><a name="constructor_detail"> 413<!-- --> 414</a> 415<h3>Constructor Detail</h3> 416<a name="MappingIterator(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext, com.fasterxml.jackson.databind.JsonDeserializer)"> 417<!-- --> 418</a> 419<ul class="blockList"> 420<li class="blockList"> 421<h4>MappingIterator</h4> 422<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> 423protected MappingIterator(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 424 com.fasterxml.jackson.core.JsonParser jp, 425 <a href="../../../../com/fasterxml/jackson/databind/DeserializationContext.html" title="class in com.fasterxml.jackson.databind">DeserializationContext</a> ctxt, 426 <a href="../../../../com/fasterxml/jackson/databind/JsonDeserializer.html" title="class in com.fasterxml.jackson.databind">JsonDeserializer</a><?> deser)</pre> 427<div class="block"><span class="strong">Deprecated.</span> <i>Since 2.1, to be removed</i></div> 428</li> 429</ul> 430<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)"> 431<!-- --> 432</a> 433<ul class="blockListLast"> 434<li class="blockList"> 435<h4>MappingIterator</h4> 436<pre>protected MappingIterator(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 437 com.fasterxml.jackson.core.JsonParser jp, 438 <a href="../../../../com/fasterxml/jackson/databind/DeserializationContext.html" title="class in com.fasterxml.jackson.databind">DeserializationContext</a> ctxt, 439 <a href="../../../../com/fasterxml/jackson/databind/JsonDeserializer.html" title="class in com.fasterxml.jackson.databind">JsonDeserializer</a><?> deser, 440 boolean managedParser, 441 <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> 442<dl><dt><span class="strong">Parameters:</span></dt><dd><code>managedParser</code> - Whether we "own" the <code>JsonParser</code> passed or not: 443 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 444 close it; if false, it was passed by calling code and should not be 445 closed by iterator.</dd></dl> 446</li> 447</ul> 448</li> 449</ul> 450<!-- ============ METHOD DETAIL ========== --> 451<ul class="blockList"> 452<li class="blockList"><a name="method_detail"> 453<!-- --> 454</a> 455<h3>Method Detail</h3> 456<a name="emptyIterator()"> 457<!-- --> 458</a> 459<ul class="blockList"> 460<li class="blockList"> 461<h4>emptyIterator</h4> 462<pre>protected static <T> <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="class in com.fasterxml.jackson.databind">MappingIterator</a><T> emptyIterator()</pre> 463</li> 464</ul> 465<a name="hasNext()"> 466<!-- --> 467</a> 468<ul class="blockList"> 469<li class="blockList"> 470<h4>hasNext</h4> 471<pre>public boolean hasNext()</pre> 472<dl> 473<dt><strong>Specified by:</strong></dt> 474<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> 475</dl> 476</li> 477</ul> 478<a name="next()"> 479<!-- --> 480</a> 481<ul class="blockList"> 482<li class="blockList"> 483<h4>next</h4> 484<pre>public <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a> next()</pre> 485<dl> 486<dt><strong>Specified by:</strong></dt> 487<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> 488</dl> 489</li> 490</ul> 491<a name="remove()"> 492<!-- --> 493</a> 494<ul class="blockList"> 495<li class="blockList"> 496<h4>remove</h4> 497<pre>public void remove()</pre> 498<dl> 499<dt><strong>Specified by:</strong></dt> 500<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> 501</dl> 502</li> 503</ul> 504<a name="close()"> 505<!-- --> 506</a> 507<ul class="blockList"> 508<li class="blockList"> 509<h4>close</h4> 510<pre>public void close() 511 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> 512<dl> 513<dt><strong>Specified by:</strong></dt> 514<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> 515<dt><strong>Specified by:</strong></dt> 516<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> 517<dt><span class="strong">Throws:</span></dt> 518<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> 519</li> 520</ul> 521<a name="hasNextValue()"> 522<!-- --> 523</a> 524<ul class="blockList"> 525<li class="blockList"> 526<h4>hasNextValue</h4> 527<pre>public boolean hasNextValue() 528 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> 529<div class="block">Equivalent of <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#next()"><code>next()</code></a> but one that may throw checked 530 exceptions from Jackson due to invalid input.</div> 531<dl><dt><span class="strong">Throws:</span></dt> 532<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> 533</li> 534</ul> 535<a name="nextValue()"> 536<!-- --> 537</a> 538<ul class="blockList"> 539<li class="blockList"> 540<h4>nextValue</h4> 541<pre>public <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a> nextValue() 542 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> 543<dl><dt><span class="strong">Throws:</span></dt> 544<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> 545</li> 546</ul> 547<a name="readAll()"> 548<!-- --> 549</a> 550<ul class="blockList"> 551<li class="blockList"> 552<h4>readAll</h4> 553<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() 554 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> 555<div class="block">Convenience method for reading all entries accessible via 556 this iterator; resulting container will be a <a href="http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util"><code>ArrayList</code></a>.</div> 557<dl><dt><span class="strong">Returns:</span></dt><dd>List of entries read</dd> 558<dt><span class="strong">Throws:</span></dt> 559<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> 560 <dd>2.2</dd></dl> 561</li> 562</ul> 563<a name="readAll(java.util.List)"> 564<!-- --> 565</a><a name="readAll(L)"> 566<!-- --> 567</a> 568<ul class="blockList"> 569<li class="blockList"> 570<h4>readAll</h4> 571<pre>public <L extends <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><? super <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>>> L readAll(L resultList) 572 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> 573<div class="block">Convenience method for reading all entries accessible via 574 this iterator</div> 575<dl><dt><span class="strong">Returns:</span></dt><dd>List of entries read (same as passed-in argument)</dd> 576<dt><span class="strong">Throws:</span></dt> 577<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> 578 <dd>2.2</dd></dl> 579</li> 580</ul> 581<a name="readAll(java.util.Collection)"> 582<!-- --> 583</a><a name="readAll(C)"> 584<!-- --> 585</a> 586<ul class="blockList"> 587<li class="blockList"> 588<h4>readAll</h4> 589<pre>public <C extends <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><? super <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="type parameter in MappingIterator">T</a>>> C readAll(C results) 590 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> 591<div class="block">Convenience method for reading all entries accessible via 592 this iterator</div> 593<dl><dt><span class="strong">Throws:</span></dt> 594<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> 595 <dd>2.5</dd></dl> 596</li> 597</ul> 598<a name="getParser()"> 599<!-- --> 600</a> 601<ul class="blockList"> 602<li class="blockList"> 603<h4>getParser</h4> 604<pre>public com.fasterxml.jackson.core.JsonParser getParser()</pre> 605<div class="block">Accessor for getting underlying parser this iterator uses.</div> 606<dl><dt><span class="strong">Since:</span></dt> 607 <dd>2.2</dd></dl> 608</li> 609</ul> 610<a name="getParserSchema()"> 611<!-- --> 612</a> 613<ul class="blockList"> 614<li class="blockList"> 615<h4>getParserSchema</h4> 616<pre>public com.fasterxml.jackson.core.FormatSchema getParserSchema()</pre> 617<div class="block">Accessor for accessing <code>FormatSchema</code> that the underlying parser 618 (as per <a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html#getParser()"><code>getParser()</code></a>) is using, if any; only parser of schema-aware 619 formats use schemas.</div> 620<dl><dt><span class="strong">Since:</span></dt> 621 <dd>2.2</dd></dl> 622</li> 623</ul> 624<a name="getCurrentLocation()"> 625<!-- --> 626</a> 627<ul class="blockList"> 628<li class="blockList"> 629<h4>getCurrentLocation</h4> 630<pre>public com.fasterxml.jackson.core.JsonLocation getCurrentLocation()</pre> 631<div class="block">Convenience method, functionally equivalent to: 632<code> 633 iterator.getParser().getCurrentLocation() 634</code></div> 635<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> 636 <dd>2.2.1</dd></dl> 637</li> 638</ul> 639<a name="_throwNoSuchElement()"> 640<!-- --> 641</a> 642<ul class="blockList"> 643<li class="blockList"> 644<h4>_throwNoSuchElement</h4> 645<pre>protected <R> R _throwNoSuchElement()</pre> 646</li> 647</ul> 648<a name="_handleMappingException(com.fasterxml.jackson.databind.JsonMappingException)"> 649<!-- --> 650</a> 651<ul class="blockList"> 652<li class="blockList"> 653<h4>_handleMappingException</h4> 654<pre>protected <R> R _handleMappingException(<a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a> e)</pre> 655</li> 656</ul> 657<a name="_handleIOException(java.io.IOException)"> 658<!-- --> 659</a> 660<ul class="blockListLast"> 661<li class="blockList"> 662<h4>_handleIOException</h4> 663<pre>protected <R> R _handleIOException(<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> e)</pre> 664</li> 665</ul> 666</li> 667</ul> 668</li> 669</ul> 670</div> 671</div> 672<!-- ========= END OF CLASS DATA ========= --> 673<!-- ======= START OF BOTTOM NAVBAR ====== --> 674<div class="bottomNav"><a name="navbar_bottom"> 675<!-- --> 676</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 677<!-- --> 678</a> 679<ul class="navList" title="Navigation"> 680<li><a href="../../../../overview-summary.html">Overview</a></li> 681<li><a href="package-summary.html">Package</a></li> 682<li class="navBarCell1Rev">Class</li> 683<li><a href="class-use/MappingIterator.html">Use</a></li> 684<li><a href="package-tree.html">Tree</a></li> 685<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 686<li><a href="../../../../index-all.html">Index</a></li> 687<li><a href="../../../../help-doc.html">Help</a></li> 688</ul> 689</div> 690<div class="subNav"> 691<ul class="navList"> 692<li><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 693<li><a href="../../../../com/fasterxml/jackson/databind/MappingJsonFactory.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 694</ul> 695<ul class="navList"> 696<li><a href="../../../../index.html?com/fasterxml/jackson/databind/MappingIterator.html" target="_top">Frames</a></li> 697<li><a href="MappingIterator.html" target="_top">No Frames</a></li> 698</ul> 699<ul class="navList" id="allclasses_navbar_bottom"> 700<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 701</ul> 702<div> 703<script type="text/javascript"><!-- 704 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 705 if(window==top) { 706 allClassesLink.style.display = "block"; 707 } 708 else { 709 allClassesLink.style.display = "none"; 710 } 711 //--> 712</script> 713</div> 714<div> 715<ul class="subNavList"> 716<li>Summary: </li> 717<li>Nested | </li> 718<li><a href="#field_summary">Field</a> | </li> 719<li><a href="#constructor_summary">Constr</a> | </li> 720<li><a href="#method_summary">Method</a></li> 721</ul> 722<ul class="subNavList"> 723<li>Detail: </li> 724<li><a href="#field_detail">Field</a> | </li> 725<li><a href="#constructor_detail">Constr</a> | </li> 726<li><a href="#method_detail">Method</a></li> 727</ul> 728</div> 729<a name="skip-navbar_bottom"> 730<!-- --> 731</a></div> 732<!-- ======== END OF BOTTOM NAVBAR ======= --> 733<p class="legalCopy"><small>Copyright © 2014-2015 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 734</body> 735</html> 736