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_79) on Fri Jan 15 20:28:44 PST 2016 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>RawValue (jackson-databind 2.7.0 API)</title> 8<meta name="date" content="2016-01-15"> 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="RawValue (jackson-databind 2.7.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/RawValue.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/util/PrimitiveArrayBuilder.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../../com/fasterxml/jackson/databind/util/RootNameLookup.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/RawValue.html" target="_top">Frames</a></li> 45<li><a href="RawValue.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.util</div> 84<h2 title="Class RawValue" class="title">Class RawValue</h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<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> 89<li> 90<ul class="inheritance"> 91<li>com.fasterxml.jackson.databind.util.RawValue</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="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></dd> 101</dl> 102<hr> 103<br> 104<pre>public class <span class="strong">RawValue</span> 105extends <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> 106implements <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></pre> 107<div class="block">Helper class used to encapsulate "raw values", pre-encoded textual content 108 that can be output as opaque value with no quoting/escaping, using 109 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true#writeRawValue(java.lang.String)" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator.writeRawValue(String)</code></a>. 110 It may be stored in <a href="../../../../../com/fasterxml/jackson/databind/util/TokenBuffer.html" title="class in com.fasterxml.jackson.databind.util"><code>TokenBuffer</code></a>, as well as in Tree Model 111 (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind"><code>JsonNode</code></a>)</div> 112<dl><dt><span class="strong">Since:</span></dt> 113 <dd>2.6</dd></dl> 114</li> 115</ul> 116</div> 117<div class="summary"> 118<ul class="blockList"> 119<li class="blockList"> 120<!-- ======== NESTED CLASS SUMMARY ======== --> 121<ul class="blockList"> 122<li class="blockList"><a name="nested_class_summary"> 123<!-- --> 124</a> 125<h3>Nested Class Summary</h3> 126<ul class="blockList"> 127<li class="blockList"><a name="nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializable"> 128<!-- --> 129</a> 130<h3>Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></h3> 131<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></code></li> 132</ul> 133</li> 134</ul> 135<!-- =========== FIELD SUMMARY =========== --> 136<ul class="blockList"> 137<li class="blockList"><a name="field_summary"> 138<!-- --> 139</a> 140<h3>Field Summary</h3> 141<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 142<caption><span>Fields</span><span class="tabEnd"> </span></caption> 143<tr> 144<th class="colFirst" scope="col">Modifier and Type</th> 145<th class="colLast" scope="col">Field and Description</th> 146</tr> 147<tr class="altColor"> 148<td class="colFirst"><code>protected <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> 149<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#_value">_value</a></strong></code> 150<div class="block">Contents to serialize.</div> 151</td> 152</tr> 153</table> 154</li> 155</ul> 156<!-- ======== CONSTRUCTOR SUMMARY ======== --> 157<ul class="blockList"> 158<li class="blockList"><a name="constructor_summary"> 159<!-- --> 160</a> 161<h3>Constructor Summary</h3> 162<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 163<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 164<tr> 165<th class="colFirst" scope="col">Modifier</th> 166<th class="colLast" scope="col">Constructor and Description</th> 167</tr> 168<tr class="altColor"> 169<td class="colFirst"><code> </code></td> 170<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#RawValue(com.fasterxml.jackson.databind.JsonSerializable)">RawValue</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a> v)</code> </td> 171</tr> 172<tr class="rowColor"> 173<td class="colFirst"><code>protected </code></td> 174<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#RawValue(java.lang.Object,%20boolean)">RawValue</a></strong>(<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, 175 boolean bogus)</code> 176<div class="block">Constructor that may be used by sub-classes, and allows passing value 177 types other than ones for which explicit constructor exists.</div> 178</td> 179</tr> 180<tr class="altColor"> 181<td class="colFirst"><code> </code></td> 182<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#RawValue(com.fasterxml.jackson.core.SerializableString)">RawValue</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/SerializableString.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">SerializableString</a> v)</code> </td> 183</tr> 184<tr class="rowColor"> 185<td class="colFirst"><code> </code></td> 186<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#RawValue(java.lang.String)">RawValue</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> v)</code> </td> 187</tr> 188</table> 189</li> 190</ul> 191<!-- ========== METHOD SUMMARY =========== --> 192<ul class="blockList"> 193<li class="blockList"><a name="method_summary"> 194<!-- --> 195</a> 196<h3>Method Summary</h3> 197<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 198<caption><span>Methods</span><span class="tabEnd"> </span></caption> 199<tr> 200<th class="colFirst" scope="col">Modifier and Type</th> 201<th class="colLast" scope="col">Method and Description</th> 202</tr> 203<tr class="altColor"> 204<td class="colFirst"><code>protected void</code></td> 205<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#_serialize(com.fasterxml.jackson.core.JsonGenerator)">_serialize</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen)</code> </td> 206</tr> 207<tr class="rowColor"> 208<td class="colFirst"><code>boolean</code></td> 209<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#equals(java.lang.Object)">equals</a></strong>(<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> o)</code> </td> 210</tr> 211<tr class="altColor"> 212<td class="colFirst"><code>int</code></td> 213<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#hashCode()">hashCode</a></strong>()</code> </td> 214</tr> 215<tr class="rowColor"> 216<td class="colFirst"><code><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> 217<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#rawValue()">rawValue</a></strong>()</code> 218<div class="block">Accessor for returning enclosed raw value in whatever form it was created in 219 (usually <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a>, {link SerializableString}, or any <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><code>JsonSerializable</code></a>).</div> 220</td> 221</tr> 222<tr class="altColor"> 223<td class="colFirst"><code>void</code></td> 224<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#serialize(com.fasterxml.jackson.core.JsonGenerator)">serialize</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen)</code> </td> 225</tr> 226<tr class="rowColor"> 227<td class="colFirst"><code>void</code></td> 228<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#serialize(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider)">serialize</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen, 229 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> serializers)</code> 230<div class="block">Serialization method called when no additional type information is 231 to be included in serialization.</div> 232</td> 233</tr> 234<tr class="altColor"> 235<td class="colFirst"><code>void</code></td> 236<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#serializeWithType(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializeWithType</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen, 237 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> serializers, 238 <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> typeSer)</code> 239<div class="block">Serialization method called when additional type information is 240 expected to be included in serialization, for deserialization to use.</div> 241</td> 242</tr> 243<tr class="rowColor"> 244<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 245<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/RawValue.html#toString()">toString</a></strong>()</code> </td> 246</tr> 247</table> 248<ul class="blockList"> 249<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 250<!-- --> 251</a> 252<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> 253<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#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#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#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,%20int)" title="class or interface in java.lang">wait</a></code></li> 254</ul> 255</li> 256</ul> 257</li> 258</ul> 259</div> 260<div class="details"> 261<ul class="blockList"> 262<li class="blockList"> 263<!-- ============ FIELD DETAIL =========== --> 264<ul class="blockList"> 265<li class="blockList"><a name="field_detail"> 266<!-- --> 267</a> 268<h3>Field Detail</h3> 269<a name="_value"> 270<!-- --> 271</a> 272<ul class="blockListLast"> 273<li class="blockList"> 274<h4>_value</h4> 275<pre>protected <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</pre> 276<div class="block">Contents to serialize. Untyped because there are multiple types that are 277 supported: <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><code>JsonSerializable</code></a>, <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/SerializableString.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>SerializableString</code></a>.</div> 278</li> 279</ul> 280</li> 281</ul> 282<!-- ========= CONSTRUCTOR DETAIL ======== --> 283<ul class="blockList"> 284<li class="blockList"><a name="constructor_detail"> 285<!-- --> 286</a> 287<h3>Constructor Detail</h3> 288<a name="RawValue(java.lang.String)"> 289<!-- --> 290</a> 291<ul class="blockList"> 292<li class="blockList"> 293<h4>RawValue</h4> 294<pre>public RawValue(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> v)</pre> 295</li> 296</ul> 297<a name="RawValue(com.fasterxml.jackson.core.SerializableString)"> 298<!-- --> 299</a> 300<ul class="blockList"> 301<li class="blockList"> 302<h4>RawValue</h4> 303<pre>public RawValue(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/SerializableString.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">SerializableString</a> v)</pre> 304</li> 305</ul> 306<a name="RawValue(com.fasterxml.jackson.databind.JsonSerializable)"> 307<!-- --> 308</a> 309<ul class="blockList"> 310<li class="blockList"> 311<h4>RawValue</h4> 312<pre>public RawValue(<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a> v)</pre> 313</li> 314</ul> 315<a name="RawValue(java.lang.Object, boolean)"> 316<!-- --> 317</a> 318<ul class="blockListLast"> 319<li class="blockList"> 320<h4>RawValue</h4> 321<pre>protected RawValue(<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, 322 boolean bogus)</pre> 323<div class="block">Constructor that may be used by sub-classes, and allows passing value 324 types other than ones for which explicit constructor exists. Caller has to 325 take care that values of types not supported by base implementation are 326 handled properly, usually by overriding some of existing serialization 327 methods.</div> 328</li> 329</ul> 330</li> 331</ul> 332<!-- ============ METHOD DETAIL ========== --> 333<ul class="blockList"> 334<li class="blockList"><a name="method_detail"> 335<!-- --> 336</a> 337<h3>Method Detail</h3> 338<a name="rawValue()"> 339<!-- --> 340</a> 341<ul class="blockList"> 342<li class="blockList"> 343<h4>rawValue</h4> 344<pre>public <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> rawValue()</pre> 345<div class="block">Accessor for returning enclosed raw value in whatever form it was created in 346 (usually <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a>, {link SerializableString}, or any <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><code>JsonSerializable</code></a>).</div> 347</li> 348</ul> 349<a name="serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)"> 350<!-- --> 351</a> 352<ul class="blockList"> 353<li class="blockList"> 354<h4>serialize</h4> 355<pre>public void serialize(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen, 356 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> serializers) 357 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> 358<div class="block"><strong>Description copied from interface: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serialize(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider)">JsonSerializable</a></code></strong></div> 359<div class="block">Serialization method called when no additional type information is 360 to be included in serialization.</div> 361<dl> 362<dt><strong>Specified by:</strong></dt> 363<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serialize(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider)">serialize</a></code> in interface <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></code></dd> 364<dt><span class="strong">Throws:</span></dt> 365<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></dl> 366</li> 367</ul> 368<a name="serializeWithType(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.jsontype.TypeSerializer)"> 369<!-- --> 370</a> 371<ul class="blockList"> 372<li class="blockList"> 373<h4>serializeWithType</h4> 374<pre>public void serializeWithType(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen, 375 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> serializers, 376 <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> typeSer) 377 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> 378<div class="block"><strong>Description copied from interface: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serializeWithType(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.jsontype.TypeSerializer)">JsonSerializable</a></code></strong></div> 379<div class="block">Serialization method called when additional type information is 380 expected to be included in serialization, for deserialization to use. 381<p> 382 Usually implementation consists of a call to one of methods 383 in <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a> (such as <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html#writeTypePrefixForObject(java.lang.Object,%20com.fasterxml.jackson.core.JsonGenerator)"><code>TypeSerializer.writeTypePrefixForObject(Object, JsonGenerator)</code></a>) 384 followed by serialization of contents, 385 followed by another call to <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a> 386 (such as <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html#writeTypeSuffixForObject(java.lang.Object,%20com.fasterxml.jackson.core.JsonGenerator)"><code>TypeSerializer.writeTypeSuffixForObject(Object, JsonGenerator)</code></a>). 387 Exact methods to call in <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a> depend on shape of JSON Object used 388 (Array, Object or scalar like String/Number/Boolean). 389<p> 390 Note that some types (most notably, "natural" types: String, Integer, 391 Double and Boolean) never include type information.</div> 392<dl> 393<dt><strong>Specified by:</strong></dt> 394<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serializeWithType(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializeWithType</a></code> in interface <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></code></dd> 395<dt><span class="strong">Throws:</span></dt> 396<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></dl> 397</li> 398</ul> 399<a name="serialize(com.fasterxml.jackson.core.JsonGenerator)"> 400<!-- --> 401</a> 402<ul class="blockList"> 403<li class="blockList"> 404<h4>serialize</h4> 405<pre>public void serialize(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen) 406 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> 407<dl><dt><span class="strong">Throws:</span></dt> 408<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></dl> 409</li> 410</ul> 411<a name="_serialize(com.fasterxml.jackson.core.JsonGenerator)"> 412<!-- --> 413</a> 414<ul class="blockList"> 415<li class="blockList"> 416<h4>_serialize</h4> 417<pre>protected void _serialize(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen) 418 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> 419<dl><dt><span class="strong">Throws:</span></dt> 420<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></dl> 421</li> 422</ul> 423<a name="equals(java.lang.Object)"> 424<!-- --> 425</a> 426<ul class="blockList"> 427<li class="blockList"> 428<h4>equals</h4> 429<pre>public boolean equals(<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> o)</pre> 430<dl> 431<dt><strong>Overrides:</strong></dt> 432<dd><code><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></code> in class <code><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></dd> 433</dl> 434</li> 435</ul> 436<a name="hashCode()"> 437<!-- --> 438</a> 439<ul class="blockList"> 440<li class="blockList"> 441<h4>hashCode</h4> 442<pre>public int hashCode()</pre> 443<dl> 444<dt><strong>Overrides:</strong></dt> 445<dd><code><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></code> in class <code><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></dd> 446</dl> 447</li> 448</ul> 449<a name="toString()"> 450<!-- --> 451</a> 452<ul class="blockListLast"> 453<li class="blockList"> 454<h4>toString</h4> 455<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> 456<dl> 457<dt><strong>Overrides:</strong></dt> 458<dd><code><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></code> in class <code><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></dd> 459</dl> 460</li> 461</ul> 462</li> 463</ul> 464</li> 465</ul> 466</div> 467</div> 468<!-- ========= END OF CLASS DATA ========= --> 469<!-- ======= START OF BOTTOM NAVBAR ====== --> 470<div class="bottomNav"><a name="navbar_bottom"> 471<!-- --> 472</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 473<!-- --> 474</a> 475<ul class="navList" title="Navigation"> 476<li><a href="../../../../../overview-summary.html">Overview</a></li> 477<li><a href="package-summary.html">Package</a></li> 478<li class="navBarCell1Rev">Class</li> 479<li><a href="class-use/RawValue.html">Use</a></li> 480<li><a href="package-tree.html">Tree</a></li> 481<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 482<li><a href="../../../../../index-all.html">Index</a></li> 483<li><a href="../../../../../help-doc.html">Help</a></li> 484</ul> 485</div> 486<div class="subNav"> 487<ul class="navList"> 488<li><a href="../../../../../com/fasterxml/jackson/databind/util/PrimitiveArrayBuilder.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 489<li><a href="../../../../../com/fasterxml/jackson/databind/util/RootNameLookup.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 490</ul> 491<ul class="navList"> 492<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/RawValue.html" target="_top">Frames</a></li> 493<li><a href="RawValue.html" target="_top">No Frames</a></li> 494</ul> 495<ul class="navList" id="allclasses_navbar_bottom"> 496<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 497</ul> 498<div> 499<script type="text/javascript"><!-- 500 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 501 if(window==top) { 502 allClassesLink.style.display = "block"; 503 } 504 else { 505 allClassesLink.style.display = "none"; 506 } 507 //--> 508</script> 509</div> 510<div> 511<ul class="subNavList"> 512<li>Summary: </li> 513<li>Nested | </li> 514<li><a href="#field_summary">Field</a> | </li> 515<li><a href="#constructor_summary">Constr</a> | </li> 516<li><a href="#method_summary">Method</a></li> 517</ul> 518<ul class="subNavList"> 519<li>Detail: </li> 520<li><a href="#field_detail">Field</a> | </li> 521<li><a href="#constructor_detail">Constr</a> | </li> 522<li><a href="#method_detail">Method</a></li> 523</ul> 524</div> 525<a name="skip-navbar_bottom"> 526<!-- --> 527</a></div> 528<!-- ======== END OF BOTTOM NAVBAR ======= --> 529<p class="legalCopy"><small>Copyright © 2008–2016 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 530</body> 531</html> 532