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 (1.8.0_162) on Tue Jan 23 20:22:12 PST 2018 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>ObjectWriter.Prefetch (jackson-databind 2.9.0 API)</title> 8<meta name="date" content="2018-01-23"> 9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 10<script type="text/javascript" src="../../../../script.js"></script> 11</head> 12<body> 13<script type="text/javascript"><!-- 14 try { 15 if (location.href.indexOf('is-external=true') == -1) { 16 parent.document.title="ObjectWriter.Prefetch (jackson-databind 2.9.0 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10}; 23var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; 24var altColor = "altColor"; 25var rowColor = "rowColor"; 26var tableTab = "tableTab"; 27var activeTableTab = "activeTableTab"; 28</script> 29<noscript> 30<div>JavaScript is disabled on your browser.</div> 31</noscript> 32<!-- ========= START OF TOP NAVBAR ======= --> 33<div class="topNav"><a name="navbar.top"> 34<!-- --> 35</a> 36<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 37<a name="navbar.top.firstrow"> 38<!-- --> 39</a> 40<ul class="navList" title="Navigation"> 41<li><a href="../../../../overview-summary.html">Overview</a></li> 42<li><a href="package-summary.html">Package</a></li> 43<li class="navBarCell1Rev">Class</li> 44<li><a href="class-use/ObjectWriter.Prefetch.html">Use</a></li> 45<li><a href="package-tree.html">Tree</a></li> 46<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 47<li><a href="../../../../index-all.html">Index</a></li> 48<li><a href="../../../../help-doc.html">Help</a></li> 49</ul> 50</div> 51<div class="subNav"> 52<ul class="navList"> 53<li><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.GeneratorSettings.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Prev Class</span></a></li> 54<li><a href="../../../../com/fasterxml/jackson/databind/PropertyMetadata.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Next Class</span></a></li> 55</ul> 56<ul class="navList"> 57<li><a href="../../../../index.html?com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" target="_top">Frames</a></li> 58<li><a href="ObjectWriter.Prefetch.html" target="_top">No Frames</a></li> 59</ul> 60<ul class="navList" id="allclasses_navbar_top"> 61<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 62</ul> 63<div> 64<script type="text/javascript"><!-- 65 allClassesLink = document.getElementById("allclasses_navbar_top"); 66 if(window==top) { 67 allClassesLink.style.display = "block"; 68 } 69 else { 70 allClassesLink.style.display = "none"; 71 } 72 //--> 73</script> 74</div> 75<div> 76<ul class="subNavList"> 77<li>Summary: </li> 78<li>Nested | </li> 79<li><a href="#field.summary">Field</a> | </li> 80<li>Constr | </li> 81<li><a href="#method.summary">Method</a></li> 82</ul> 83<ul class="subNavList"> 84<li>Detail: </li> 85<li><a href="#field.detail">Field</a> | </li> 86<li>Constr | </li> 87<li><a href="#method.detail">Method</a></li> 88</ul> 89</div> 90<a name="skip.navbar.top"> 91<!-- --> 92</a></div> 93<!-- ========= END OF TOP NAVBAR ========= --> 94<!-- ======== START OF CLASS DATA ======== --> 95<div class="header"> 96<div class="subTitle">com.fasterxml.jackson.databind</div> 97<h2 title="Class ObjectWriter.Prefetch" class="title">Class ObjectWriter.Prefetch</h2> 98</div> 99<div class="contentContainer"> 100<ul class="inheritance"> 101<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 102<li> 103<ul class="inheritance"> 104<li>com.fasterxml.jackson.databind.ObjectWriter.Prefetch</li> 105</ul> 106</li> 107</ul> 108<div class="description"> 109<ul class="blockList"> 110<li class="blockList"> 111<dl> 112<dt>All Implemented Interfaces:</dt> 113<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd> 114</dl> 115<dl> 116<dt>Enclosing class:</dt> 117<dd><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></dd> 118</dl> 119<hr> 120<br> 121<pre>public static final class <span class="typeNameLabel">ObjectWriter.Prefetch</span> 122extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> 123implements <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> 124<div class="block">As a minor optimization, we will make an effort to pre-fetch a serializer, 125 or at least relevant <code>TypeSerializer</code>, if given enough 126 information.</div> 127<dl> 128<dt><span class="simpleTagLabel">Since:</span></dt> 129<dd>2.5</dd> 130<dt><span class="seeLabel">See Also:</span></dt> 131<dd><a href="../../../../serialized-form.html#com.fasterxml.jackson.databind.ObjectWriter.Prefetch">Serialized Form</a></dd> 132</dl> 133</li> 134</ul> 135</div> 136<div class="summary"> 137<ul class="blockList"> 138<li class="blockList"> 139<!-- =========== FIELD SUMMARY =========== --> 140<ul class="blockList"> 141<li class="blockList"><a name="field.summary"> 142<!-- --> 143</a> 144<h3>Field Summary</h3> 145<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 146<caption><span>Fields</span><span class="tabEnd"> </span></caption> 147<tr> 148<th class="colFirst" scope="col">Modifier and Type</th> 149<th class="colLast" scope="col">Field and Description</th> 150</tr> 151<tr class="altColor"> 152<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a></code></td> 153<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#empty">empty</a></span></code> </td> 154</tr> 155</table> 156</li> 157</ul> 158<!-- ========== METHOD SUMMARY =========== --> 159<ul class="blockList"> 160<li class="blockList"><a name="method.summary"> 161<!-- --> 162</a> 163<h3>Method Summary</h3> 164<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 165<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> 166<tr> 167<th class="colFirst" scope="col">Modifier and Type</th> 168<th class="colLast" scope="col">Method and Description</th> 169</tr> 170<tr id="i0" class="altColor"> 171<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a></code></td> 172<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#forRootType-com.fasterxml.jackson.databind.ObjectWriter-com.fasterxml.jackson.databind.JavaType-">forRootType</a></span>(<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> parent, 173 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> newType)</code> </td> 174</tr> 175<tr id="i1" class="rowColor"> 176<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a></code></td> 177<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#getTypeSerializer--">getTypeSerializer</a></span>()</code> </td> 178</tr> 179<tr id="i2" class="altColor"> 180<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></td> 181<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#getValueSerializer--">getValueSerializer</a></span>()</code> </td> 182</tr> 183<tr id="i3" class="rowColor"> 184<td class="colFirst"><code>boolean</code></td> 185<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#hasSerializer--">hasSerializer</a></span>()</code> </td> 186</tr> 187<tr id="i4" class="altColor"> 188<td class="colFirst"><code>void</code></td> 189<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#serialize-com.fasterxml.jackson.core.JsonGenerator-java.lang.Object-com.fasterxml.jackson.databind.ser.DefaultSerializerProvider-">serialize</a></span>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen, 190 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 191 <a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> prov)</code> </td> 192</tr> 193</table> 194<ul class="blockList"> 195<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 196<!-- --> 197</a> 198<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 199<code><a href="http://docs.oracle.com/javase/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 200</ul> 201</li> 202</ul> 203</li> 204</ul> 205</div> 206<div class="details"> 207<ul class="blockList"> 208<li class="blockList"> 209<!-- ============ FIELD DETAIL =========== --> 210<ul class="blockList"> 211<li class="blockList"><a name="field.detail"> 212<!-- --> 213</a> 214<h3>Field Detail</h3> 215<a name="empty"> 216<!-- --> 217</a> 218<ul class="blockListLast"> 219<li class="blockList"> 220<h4>empty</h4> 221<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a> empty</pre> 222</li> 223</ul> 224</li> 225</ul> 226<!-- ============ METHOD DETAIL ========== --> 227<ul class="blockList"> 228<li class="blockList"><a name="method.detail"> 229<!-- --> 230</a> 231<h3>Method Detail</h3> 232<a name="forRootType-com.fasterxml.jackson.databind.ObjectWriter-com.fasterxml.jackson.databind.JavaType-"> 233<!-- --> 234</a> 235<ul class="blockList"> 236<li class="blockList"> 237<h4>forRootType</h4> 238<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a> forRootType(<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> parent, 239 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> newType)</pre> 240</li> 241</ul> 242<a name="getValueSerializer--"> 243<!-- --> 244</a> 245<ul class="blockList"> 246<li class="blockList"> 247<h4>getValueSerializer</h4> 248<pre>public final <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> getValueSerializer()</pre> 249</li> 250</ul> 251<a name="getTypeSerializer--"> 252<!-- --> 253</a> 254<ul class="blockList"> 255<li class="blockList"> 256<h4>getTypeSerializer</h4> 257<pre>public final <a href="../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> getTypeSerializer()</pre> 258</li> 259</ul> 260<a name="hasSerializer--"> 261<!-- --> 262</a> 263<ul class="blockList"> 264<li class="blockList"> 265<h4>hasSerializer</h4> 266<pre>public boolean hasSerializer()</pre> 267</li> 268</ul> 269<a name="serialize-com.fasterxml.jackson.core.JsonGenerator-java.lang.Object-com.fasterxml.jackson.databind.ser.DefaultSerializerProvider-"> 270<!-- --> 271</a> 272<ul class="blockListLast"> 273<li class="blockList"> 274<h4>serialize</h4> 275<pre>public void serialize(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen, 276 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 277 <a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> prov) 278 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 279<dl> 280<dt><span class="throwsLabel">Throws:</span></dt> 281<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 282</dl> 283</li> 284</ul> 285</li> 286</ul> 287</li> 288</ul> 289</div> 290</div> 291<!-- ========= END OF CLASS DATA ========= --> 292<!-- ======= START OF BOTTOM NAVBAR ====== --> 293<div class="bottomNav"><a name="navbar.bottom"> 294<!-- --> 295</a> 296<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 297<a name="navbar.bottom.firstrow"> 298<!-- --> 299</a> 300<ul class="navList" title="Navigation"> 301<li><a href="../../../../overview-summary.html">Overview</a></li> 302<li><a href="package-summary.html">Package</a></li> 303<li class="navBarCell1Rev">Class</li> 304<li><a href="class-use/ObjectWriter.Prefetch.html">Use</a></li> 305<li><a href="package-tree.html">Tree</a></li> 306<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 307<li><a href="../../../../index-all.html">Index</a></li> 308<li><a href="../../../../help-doc.html">Help</a></li> 309</ul> 310</div> 311<div class="subNav"> 312<ul class="navList"> 313<li><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.GeneratorSettings.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Prev Class</span></a></li> 314<li><a href="../../../../com/fasterxml/jackson/databind/PropertyMetadata.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Next Class</span></a></li> 315</ul> 316<ul class="navList"> 317<li><a href="../../../../index.html?com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" target="_top">Frames</a></li> 318<li><a href="ObjectWriter.Prefetch.html" target="_top">No Frames</a></li> 319</ul> 320<ul class="navList" id="allclasses_navbar_bottom"> 321<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 322</ul> 323<div> 324<script type="text/javascript"><!-- 325 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 326 if(window==top) { 327 allClassesLink.style.display = "block"; 328 } 329 else { 330 allClassesLink.style.display = "none"; 331 } 332 //--> 333</script> 334</div> 335<div> 336<ul class="subNavList"> 337<li>Summary: </li> 338<li>Nested | </li> 339<li><a href="#field.summary">Field</a> | </li> 340<li>Constr | </li> 341<li><a href="#method.summary">Method</a></li> 342</ul> 343<ul class="subNavList"> 344<li>Detail: </li> 345<li><a href="#field.detail">Field</a> | </li> 346<li>Constr | </li> 347<li><a href="#method.detail">Method</a></li> 348</ul> 349</div> 350<a name="skip.navbar.bottom"> 351<!-- --> 352</a></div> 353<!-- ======== END OF BOTTOM NAVBAR ======= --> 354<p class="legalCopy"><small>Copyright © 2008–2018 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 355</body> 356</html> 357