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 Mon Jun 02 17:48:54 PDT 2014 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>ObjectWriter (jackson-databind 2.4.0 API)</title> 8<meta name="date" content="2014-06-02"> 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="ObjectWriter (jackson-databind 2.4.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/ObjectWriter.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/ObjectReader.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../com/fasterxml/jackson/databind/PropertyMetadata.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/ObjectWriter.html" target="_top">Frames</a></li> 45<li><a href="ObjectWriter.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 ObjectWriter" class="title">Class ObjectWriter</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.ObjectWriter</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://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/Versioned.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Versioned</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd> 101</dl> 102<hr> 103<br> 104<pre>public class <span class="strong">ObjectWriter</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://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/Versioned.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Versioned</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> 107<div class="block">Builder object that can be used for per-serialization configuration of 108 serialization parameters, such as JSON View and root type to use. 109 (and thus fully thread-safe with no external synchronization); 110 new instances are constructed for different configurations. 111 Instances are initially constructed by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> and can be 112 reused in completely thread-safe manner with no explicit synchronization</div> 113<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#com.fasterxml.jackson.databind.ObjectWriter">Serialized Form</a></dd></dl> 114</li> 115</ul> 116</div> 117<div class="summary"> 118<ul class="blockList"> 119<li class="blockList"> 120<!-- =========== FIELD SUMMARY =========== --> 121<ul class="blockList"> 122<li class="blockList"><a name="field_summary"> 123<!-- --> 124</a> 125<h3>Field Summary</h3> 126<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 127<caption><span>Fields</span><span class="tabEnd"> </span></caption> 128<tr> 129<th class="colFirst" scope="col">Modifier and Type</th> 130<th class="colLast" scope="col">Field and Description</th> 131</tr> 132<tr class="altColor"> 133<td class="colFirst"><code>protected boolean</code></td> 134<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_cfgBigDecimalAsPlain">_cfgBigDecimalAsPlain</a></strong></code> </td> 135</tr> 136<tr class="rowColor"> 137<td class="colFirst"><code>protected <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/io/CharacterEscapes.html?is-external=true" title="class or interface in com.fasterxml.jackson.core.io">CharacterEscapes</a></code></td> 138<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_characterEscapes">_characterEscapes</a></strong></code> 139<div class="block">Caller may want to specify character escaping details, either as 140 defaults, or on call-by-call basis.</div> 141</td> 142</tr> 143<tr class="altColor"> 144<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a></code></td> 145<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_config">_config</a></strong></code> 146<div class="block">General serialization configuration settings</div> 147</td> 148</tr> 149<tr class="rowColor"> 150<td class="colFirst"><code>protected <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory</a></code></td> 151<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_generatorFactory">_generatorFactory</a></strong></code> 152<div class="block">Factory used for constructing <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator</code></a>s</div> 153</td> 154</tr> 155<tr class="altColor"> 156<td class="colFirst"><code>protected <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/PrettyPrinter.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">PrettyPrinter</a></code></td> 157<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_prettyPrinter">_prettyPrinter</a></strong></code> 158<div class="block">To allow for dynamic enabling/disabling of pretty printing, 159 pretty printer can be optionally configured for writer 160 as well</div> 161</td> 162</tr> 163<tr class="rowColor"> 164<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<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>></code></td> 165<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_rootSerializer">_rootSerializer</a></strong></code> 166<div class="block">We may pre-fetch serializer if <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_rootType"><code>_rootType</code></a> 167 is known, and if so, reuse it afterwards.</div> 168</td> 169</tr> 170<tr class="altColor"> 171<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a></code></td> 172<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_rootType">_rootType</a></strong></code> 173<div class="block">Specified root serialization type to use; can be same 174 as runtime type, but usually one of its super types</div> 175</td> 176</tr> 177<tr class="rowColor"> 178<td class="colFirst"><code>protected <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a></code></td> 179<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_schema">_schema</a></strong></code> 180<div class="block">When using data format that uses a schema, schema is passed 181 to generator.</div> 182</td> 183</tr> 184<tr class="altColor"> 185<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</a></code></td> 186<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_serializerFactory">_serializerFactory</a></strong></code> </td> 187</tr> 188<tr class="rowColor"> 189<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a></code></td> 190<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_serializerProvider">_serializerProvider</a></strong></code> </td> 191</tr> 192<tr class="altColor"> 193<td class="colFirst"><code>protected static <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/PrettyPrinter.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">PrettyPrinter</a></code></td> 194<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#NULL_PRETTY_PRINTER">NULL_PRETTY_PRINTER</a></strong></code> 195<div class="block">We need to keep track of explicit disabling of pretty printing; 196 easiest to do by a token value.</div> 197</td> 198</tr> 199</table> 200</li> 201</ul> 202<!-- ======== CONSTRUCTOR SUMMARY ======== --> 203<ul class="blockList"> 204<li class="blockList"><a name="constructor_summary"> 205<!-- --> 206</a> 207<h3>Constructor Summary</h3> 208<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 209<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 210<tr> 211<th class="colFirst" scope="col">Modifier</th> 212<th class="colLast" scope="col">Constructor and Description</th> 213</tr> 214<tr class="altColor"> 215<td class="colFirst"><code>protected </code></td> 216<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#ObjectWriter(com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.databind.SerializationConfig)">ObjectWriter</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind">ObjectMapper</a> mapper, 217 <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config)</code> 218<div class="block">Alternative constructor for initial instantiation by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a></div> 219</td> 220</tr> 221<tr class="rowColor"> 222<td class="colFirst"><code>protected </code></td> 223<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#ObjectWriter(com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.core.FormatSchema)">ObjectWriter</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind">ObjectMapper</a> mapper, 224 <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 225 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a> s)</code> 226<div class="block">Alternative constructor for initial instantiation by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a></div> 227</td> 228</tr> 229<tr class="altColor"> 230<td class="colFirst"><code>protected </code></td> 231<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#ObjectWriter(com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.core.PrettyPrinter)">ObjectWriter</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind">ObjectMapper</a> mapper, 232 <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 233 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType, 234 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/PrettyPrinter.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">PrettyPrinter</a> pp)</code> 235<div class="block">Constructor used by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> for initial instantiation</div> 236</td> 237</tr> 238<tr class="rowColor"> 239<td class="colFirst"><code>protected </code></td> 240<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#ObjectWriter(com.fasterxml.jackson.databind.ObjectWriter, com.fasterxml.jackson.core.JsonFactory)">ObjectWriter</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> base, 241 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory</a> f)</code> </td> 242</tr> 243<tr class="altColor"> 244<td class="colFirst"><code>protected </code></td> 245<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#ObjectWriter(com.fasterxml.jackson.databind.ObjectWriter, com.fasterxml.jackson.databind.SerializationConfig)">ObjectWriter</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> base, 246 <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config)</code> 247<div class="block">Copy constructor used for building variations.</div> 248</td> 249</tr> 250<tr class="rowColor"> 251<td class="colFirst"><code>protected </code></td> 252<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#ObjectWriter(com.fasterxml.jackson.databind.ObjectWriter, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer, com.fasterxml.jackson.core.PrettyPrinter, com.fasterxml.jackson.core.FormatSchema, com.fasterxml.jackson.core.io.CharacterEscapes)">ObjectWriter</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> base, 253 <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 254 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType, 255 <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<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>> rootSer, 256 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/PrettyPrinter.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">PrettyPrinter</a> pp, 257 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a> s, 258 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/io/CharacterEscapes.html?is-external=true" title="class or interface in com.fasterxml.jackson.core.io">CharacterEscapes</a> escapes)</code> 259<div class="block">Copy constructor used for building variations.</div> 260</td> 261</tr> 262</table> 263</li> 264</ul> 265<!-- ========== METHOD SUMMARY =========== --> 266<ul class="blockList"> 267<li class="blockList"><a name="method_summary"> 268<!-- --> 269</a> 270<h3>Method Summary</h3> 271<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 272<caption><span>Methods</span><span class="tabEnd"> </span></caption> 273<tr> 274<th class="colFirst" scope="col">Modifier and Type</th> 275<th class="colLast" scope="col">Method and Description</th> 276</tr> 277<tr class="altColor"> 278<td class="colFirst"><code>protected void</code></td> 279<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_configAndWriteValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object)">_configAndWriteValue</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 280 <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> value)</code> 281<div class="block">Method called to configure the generator as necessary and then 282 call write functionality</div> 283</td> 284</tr> 285<tr class="rowColor"> 286<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<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>></code></td> 287<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_prefetchRootSerializer(com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.JavaType)">_prefetchRootSerializer</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 288 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> valueType)</code> 289<div class="block">Method called to locate (root) serializer ahead of time, if permitted 290 by configuration.</div> 291</td> 292</tr> 293<tr class="altColor"> 294<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a></code></td> 295<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_serializerProvider(com.fasterxml.jackson.databind.SerializationConfig)">_serializerProvider</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config)</code> 296<div class="block">Overridable helper method used for constructing 297 <a href="../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind"><code>SerializerProvider</code></a> to use for serialization.</div> 298</td> 299</tr> 300<tr class="rowColor"> 301<td class="colFirst"><code>protected void</code></td> 302<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_verifySchemaType(com.fasterxml.jackson.core.FormatSchema)">_verifySchemaType</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a> schema)</code> </td> 303</tr> 304<tr class="altColor"> 305<td class="colFirst"><code>void</code></td> 306<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#acceptJsonFormatVisitor(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper)">acceptJsonFormatVisitor</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 307 <a href="../../../../com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper.html" title="interface in com.fasterxml.jackson.databind.jsonFormatVisitors">JsonFormatVisitorWrapper</a> visitor)</code> 308<div class="block">Method for visiting type hierarchy for given type, using specified visitor.</div> 309</td> 310</tr> 311<tr class="rowColor"> 312<td class="colFirst"><code>boolean</code></td> 313<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#canSerialize(java.lang.Class)">canSerialize</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</code> </td> 314</tr> 315<tr class="altColor"> 316<td class="colFirst"><code>boolean</code></td> 317<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#canSerialize(java.lang.Class, java.util.concurrent.atomic.AtomicReference)">canSerialize</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 318 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>> cause)</code> 319<div class="block">Method for checking whether instances of given type can be serialized, 320 and optionally why (as per <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><code>Throwable</code></a> returned).</div> 321</td> 322</tr> 323<tr class="rowColor"> 324<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a></code></td> 325<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#getAttributes()">getAttributes</a></strong>()</code> </td> 326</tr> 327<tr class="altColor"> 328<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a></code></td> 329<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#getConfig()">getConfig</a></strong>()</code> </td> 330</tr> 331<tr class="rowColor"> 332<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory</a></code></td> 333<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#getFactory()">getFactory</a></strong>()</code> </td> 334</tr> 335<tr class="altColor"> 336<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory</a></code></td> 337<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#getJsonFactory()">getJsonFactory</a></strong>()</code> 338<div class="block"><strong>Deprecated.</strong> 339<div class="block"><i>Since 2.2, use <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#getFactory()"><code>getFactory()</code></a> instead.</i></div> 340</div> 341</td> 342</tr> 343<tr class="rowColor"> 344<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/type/TypeFactory.html" title="class in com.fasterxml.jackson.databind.type">TypeFactory</a></code></td> 345<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#getTypeFactory()">getTypeFactory</a></strong>()</code> </td> 346</tr> 347<tr class="altColor"> 348<td class="colFirst"><code>boolean</code></td> 349<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#hasPrefetchedSerializer()">hasPrefetchedSerializer</a></strong>()</code> 350<div class="block">Diagnostics method that can be called to check whether this writer 351 has pre-fetched serializer to use: pre-fetching improves performance 352 when writer instances are reused as it avoids a per-call serializer 353 lookup.</div> 354</td> 355</tr> 356<tr class="rowColor"> 357<td class="colFirst"><code>boolean</code></td> 358<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#isEnabled(com.fasterxml.jackson.core.JsonParser.Feature)">isEnabled</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonParser.Feature.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser.Feature</a> f)</code> </td> 359</tr> 360<tr class="altColor"> 361<td class="colFirst"><code>boolean</code></td> 362<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#isEnabled(com.fasterxml.jackson.databind.MapperFeature)">isEnabled</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> f)</code> </td> 363</tr> 364<tr class="rowColor"> 365<td class="colFirst"><code>boolean</code></td> 366<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#isEnabled(com.fasterxml.jackson.databind.SerializationFeature)">isEnabled</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> f)</code> </td> 367</tr> 368<tr class="altColor"> 369<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/Version.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Version</a></code></td> 370<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#version()">version</a></strong>()</code> 371<div class="block">Method that will return version information stored in and read from jar 372 that contains this class.</div> 373</td> 374</tr> 375<tr class="rowColor"> 376<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 377<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.core.Base64Variant)">with</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/Base64Variant.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Base64Variant</a> b64variant)</code> 378<div class="block">Method that will construct a new instance that uses specified default 379 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/Base64Variant.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>Base64Variant</code></a> for base64 encoding</div> 380</td> 381</tr> 382<tr class="altColor"> 383<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 384<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.core.io.CharacterEscapes)">with</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/io/CharacterEscapes.html?is-external=true" title="class or interface in com.fasterxml.jackson.core.io">CharacterEscapes</a> escapes)</code> </td> 385</tr> 386<tr class="rowColor"> 387<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 388<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.databind.cfg.ContextAttributes)">with</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a> attrs)</code> </td> 389</tr> 390<tr class="altColor"> 391<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 392<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(java.text.DateFormat)">with</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text">DateFormat</a> df)</code> 393<div class="block">Fluent factory method that will construct a new writer instance that will 394 use specified date format for serializing dates; or if null passed, one 395 that will serialize dates as numeric timestamps.</div> 396</td> 397</tr> 398<tr class="rowColor"> 399<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 400<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.databind.ser.FilterProvider)">with</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/ser/FilterProvider.html" title="class in com.fasterxml.jackson.databind.ser">FilterProvider</a> filterProvider)</code> 401<div class="block">Method that will construct a new instance that uses specified 402 provider for resolving filter instances by id.</div> 403</td> 404</tr> 405<tr class="altColor"> 406<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 407<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.core.JsonFactory)">with</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory</a> f)</code> </td> 408</tr> 409<tr class="rowColor"> 410<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 411<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(java.util.Locale)">with</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> l)</code> </td> 412</tr> 413<tr class="altColor"> 414<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 415<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.core.PrettyPrinter)">with</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/PrettyPrinter.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">PrettyPrinter</a> pp)</code> 416<div class="block">Method that will construct a new instance that will use specified pretty 417 printer (or, if null, will not do any pretty-printing)</div> 418</td> 419</tr> 420<tr class="rowColor"> 421<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 422<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.databind.SerializationFeature)">with</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> feature)</code> 423<div class="block">Method for constructing a new instance that is configured 424 with specified feature enabled.</div> 425</td> 426</tr> 427<tr class="altColor"> 428<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 429<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.SerializationFeature...)">with</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> first, 430 <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>... other)</code> 431<div class="block">Method for constructing a new instance that is configured 432 with specified features enabled.</div> 433</td> 434</tr> 435<tr class="rowColor"> 436<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 437<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(java.util.TimeZone)">with</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</a> tz)</code> </td> 438</tr> 439<tr class="altColor"> 440<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 441<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withAttribute(java.lang.Object, java.lang.Object)">withAttribute</a></strong>(<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> key, 442 <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> value)</code> </td> 443</tr> 444<tr class="rowColor"> 445<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 446<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withAttributes(java.util.Map)">withAttributes</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<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>,<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>> attrs)</code> </td> 447</tr> 448<tr class="altColor"> 449<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 450<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withDefaultPrettyPrinter()">withDefaultPrettyPrinter</a></strong>()</code> 451<div class="block">Method that will construct a new instance that will use the default 452 pretty printer for serialization.</div> 453</td> 454</tr> 455<tr class="rowColor"> 456<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 457<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withFeatures(com.fasterxml.jackson.databind.SerializationFeature...)">withFeatures</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>... features)</code> 458<div class="block">Method for constructing a new instance that is configured 459 with specified features enabled.</div> 460</td> 461</tr> 462<tr class="altColor"> 463<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 464<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#without(com.fasterxml.jackson.databind.SerializationFeature)">without</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> feature)</code> 465<div class="block">Method for constructing a new instance that is configured 466 with specified feature enabled.</div> 467</td> 468</tr> 469<tr class="rowColor"> 470<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 471<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#without(com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.SerializationFeature...)">without</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> first, 472 <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>... other)</code> 473<div class="block">Method for constructing a new instance that is configured 474 with specified features enabled.</div> 475</td> 476</tr> 477<tr class="altColor"> 478<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 479<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withoutAttribute(java.lang.Object)">withoutAttribute</a></strong>(<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> key)</code> </td> 480</tr> 481<tr class="rowColor"> 482<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 483<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withoutFeatures(com.fasterxml.jackson.databind.SerializationFeature...)">withoutFeatures</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>... features)</code> 484<div class="block">Method for constructing a new instance that is configured 485 with specified features enabled.</div> 486</td> 487</tr> 488<tr class="altColor"> 489<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 490<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withRootName(java.lang.String)">withRootName</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> rootName)</code> 491<div class="block">Method for constructing a new instance with configuration that 492 specifies what root name to use for "root element wrapping".</div> 493</td> 494</tr> 495<tr class="rowColor"> 496<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 497<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withSchema(com.fasterxml.jackson.core.FormatSchema)">withSchema</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a> schema)</code> 498<div class="block">Method that will construct a new instance that uses specific format schema 499 for serialization.</div> 500</td> 501</tr> 502<tr class="altColor"> 503<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 504<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withType(java.lang.Class)">withType</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rootType)</code> 505<div class="block">Method that will construct a new instance that uses specific type 506 as the root type for serialization, instead of runtime dynamic 507 type of the root object itself.</div> 508</td> 509</tr> 510<tr class="rowColor"> 511<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 512<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withType(com.fasterxml.jackson.databind.JavaType)">withType</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType)</code> 513<div class="block">Method that will construct a new instance that uses specific type 514 as the root type for serialization, instead of runtime dynamic 515 type of the root object itself.</div> 516</td> 517</tr> 518<tr class="altColor"> 519<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 520<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withType(com.fasterxml.jackson.core.type.TypeReference)">withType</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/type/TypeReference.html?is-external=true" title="class or interface in com.fasterxml.jackson.core.type">TypeReference</a><?> rootType)</code> </td> 521</tr> 522<tr class="rowColor"> 523<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></code></td> 524<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withView(java.lang.Class)">withView</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> view)</code> 525<div class="block">Method that will construct a new instance that uses specified 526 serialization view for serialization (with null basically disables 527 view processing)</div> 528</td> 529</tr> 530<tr class="altColor"> 531<td class="colFirst"><code>void</code></td> 532<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValue(java.io.File, java.lang.Object)">writeValue</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> resultFile, 533 <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> value)</code> 534<div class="block">Method that can be used to serialize any Java value as 535 JSON output, written to File provided.</div> 536</td> 537</tr> 538<tr class="rowColor"> 539<td class="colFirst"><code>void</code></td> 540<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object)">writeValue</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 541 <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> value)</code> 542<div class="block">Method that can be used to serialize any Java value as 543 JSON output, using provided <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator</code></a>.</div> 544</td> 545</tr> 546<tr class="altColor"> 547<td class="colFirst"><code>void</code></td> 548<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValue(java.io.OutputStream, java.lang.Object)">writeValue</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, 549 <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> value)</code> 550<div class="block">Method that can be used to serialize any Java value as 551 JSON output, using output stream provided (using encoding 552 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonEncoding.html?is-external=true#UTF8" title="class or interface in com.fasterxml.jackson.core"><code>JsonEncoding.UTF8</code></a>).</div> 553</td> 554</tr> 555<tr class="rowColor"> 556<td class="colFirst"><code>void</code></td> 557<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValue(java.io.Writer, java.lang.Object)">writeValue</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> w, 558 <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> value)</code> 559<div class="block">Method that can be used to serialize any Java value as 560 JSON output, using Writer provided.</div> 561</td> 562</tr> 563<tr class="altColor"> 564<td class="colFirst"><code>byte[]</code></td> 565<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValueAsBytes(java.lang.Object)">writeValueAsBytes</a></strong>(<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> value)</code> 566<div class="block">Method that can be used to serialize any Java value as 567 a byte array.</div> 568</td> 569</tr> 570<tr class="rowColor"> 571<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 572<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValueAsString(java.lang.Object)">writeValueAsString</a></strong>(<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> value)</code> 573<div class="block">Method that can be used to serialize any Java value as 574 a String.</div> 575</td> 576</tr> 577</table> 578<ul class="blockList"> 579<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 580<!-- --> 581</a> 582<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> 583<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> 584</ul> 585</li> 586</ul> 587</li> 588</ul> 589</div> 590<div class="details"> 591<ul class="blockList"> 592<li class="blockList"> 593<!-- ============ FIELD DETAIL =========== --> 594<ul class="blockList"> 595<li class="blockList"><a name="field_detail"> 596<!-- --> 597</a> 598<h3>Field Detail</h3> 599<a name="NULL_PRETTY_PRINTER"> 600<!-- --> 601</a> 602<ul class="blockList"> 603<li class="blockList"> 604<h4>NULL_PRETTY_PRINTER</h4> 605<pre>protected static final <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/PrettyPrinter.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">PrettyPrinter</a> NULL_PRETTY_PRINTER</pre> 606<div class="block">We need to keep track of explicit disabling of pretty printing; 607 easiest to do by a token value.</div> 608</li> 609</ul> 610<a name="_config"> 611<!-- --> 612</a> 613<ul class="blockList"> 614<li class="blockList"> 615<h4>_config</h4> 616<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> _config</pre> 617<div class="block">General serialization configuration settings</div> 618</li> 619</ul> 620<a name="_serializerProvider"> 621<!-- --> 622</a> 623<ul class="blockList"> 624<li class="blockList"> 625<h4>_serializerProvider</h4> 626<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> _serializerProvider</pre> 627</li> 628</ul> 629<a name="_serializerFactory"> 630<!-- --> 631</a> 632<ul class="blockList"> 633<li class="blockList"> 634<h4>_serializerFactory</h4> 635<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</a> _serializerFactory</pre> 636</li> 637</ul> 638<a name="_generatorFactory"> 639<!-- --> 640</a> 641<ul class="blockList"> 642<li class="blockList"> 643<h4>_generatorFactory</h4> 644<pre>protected final <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory</a> _generatorFactory</pre> 645<div class="block">Factory used for constructing <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator</code></a>s</div> 646</li> 647</ul> 648<a name="_rootType"> 649<!-- --> 650</a> 651<ul class="blockList"> 652<li class="blockList"> 653<h4>_rootType</h4> 654<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> _rootType</pre> 655<div class="block">Specified root serialization type to use; can be same 656 as runtime type, but usually one of its super types</div> 657</li> 658</ul> 659<a name="_rootSerializer"> 660<!-- --> 661</a> 662<ul class="blockList"> 663<li class="blockList"> 664<h4>_rootSerializer</h4> 665<pre>protected 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/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> _rootSerializer</pre> 666<div class="block">We may pre-fetch serializer if <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_rootType"><code>_rootType</code></a> 667 is known, and if so, reuse it afterwards. 668 This allows avoiding further serializer lookups and increases 669 performance a bit on cases where readers are reused.</div> 670<dl><dt><span class="strong">Since:</span></dt> 671 <dd>2.1</dd></dl> 672</li> 673</ul> 674<a name="_prettyPrinter"> 675<!-- --> 676</a> 677<ul class="blockList"> 678<li class="blockList"> 679<h4>_prettyPrinter</h4> 680<pre>protected final <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/PrettyPrinter.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">PrettyPrinter</a> _prettyPrinter</pre> 681<div class="block">To allow for dynamic enabling/disabling of pretty printing, 682 pretty printer can be optionally configured for writer 683 as well</div> 684</li> 685</ul> 686<a name="_schema"> 687<!-- --> 688</a> 689<ul class="blockList"> 690<li class="blockList"> 691<h4>_schema</h4> 692<pre>protected final <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a> _schema</pre> 693<div class="block">When using data format that uses a schema, schema is passed 694 to generator.</div> 695</li> 696</ul> 697<a name="_characterEscapes"> 698<!-- --> 699</a> 700<ul class="blockList"> 701<li class="blockList"> 702<h4>_characterEscapes</h4> 703<pre>protected final <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/io/CharacterEscapes.html?is-external=true" title="class or interface in com.fasterxml.jackson.core.io">CharacterEscapes</a> _characterEscapes</pre> 704<div class="block">Caller may want to specify character escaping details, either as 705 defaults, or on call-by-call basis.</div> 706<dl><dt><span class="strong">Since:</span></dt> 707 <dd>2.3</dd></dl> 708</li> 709</ul> 710<a name="_cfgBigDecimalAsPlain"> 711<!-- --> 712</a> 713<ul class="blockListLast"> 714<li class="blockList"> 715<h4>_cfgBigDecimalAsPlain</h4> 716<pre>protected final boolean _cfgBigDecimalAsPlain</pre> 717<dl><dt><span class="strong">Since:</span></dt> 718 <dd>2.3</dd></dl> 719</li> 720</ul> 721</li> 722</ul> 723<!-- ========= CONSTRUCTOR DETAIL ======== --> 724<ul class="blockList"> 725<li class="blockList"><a name="constructor_detail"> 726<!-- --> 727</a> 728<h3>Constructor Detail</h3> 729<a name="ObjectWriter(com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.core.PrettyPrinter)"> 730<!-- --> 731</a> 732<ul class="blockList"> 733<li class="blockList"> 734<h4>ObjectWriter</h4> 735<pre>protected ObjectWriter(<a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind">ObjectMapper</a> mapper, 736 <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 737 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType, 738 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/PrettyPrinter.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">PrettyPrinter</a> pp)</pre> 739<div class="block">Constructor used by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> for initial instantiation</div> 740</li> 741</ul> 742<a name="ObjectWriter(com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.databind.SerializationConfig)"> 743<!-- --> 744</a> 745<ul class="blockList"> 746<li class="blockList"> 747<h4>ObjectWriter</h4> 748<pre>protected ObjectWriter(<a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind">ObjectMapper</a> mapper, 749 <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config)</pre> 750<div class="block">Alternative constructor for initial instantiation by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a></div> 751</li> 752</ul> 753<a name="ObjectWriter(com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.core.FormatSchema)"> 754<!-- --> 755</a> 756<ul class="blockList"> 757<li class="blockList"> 758<h4>ObjectWriter</h4> 759<pre>protected ObjectWriter(<a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind">ObjectMapper</a> mapper, 760 <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 761 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a> s)</pre> 762<div class="block">Alternative constructor for initial instantiation by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a></div> 763</li> 764</ul> 765<a name="ObjectWriter(com.fasterxml.jackson.databind.ObjectWriter, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer, com.fasterxml.jackson.core.PrettyPrinter, com.fasterxml.jackson.core.FormatSchema, com.fasterxml.jackson.core.io.CharacterEscapes)"> 766<!-- --> 767</a> 768<ul class="blockList"> 769<li class="blockList"> 770<h4>ObjectWriter</h4> 771<pre>protected ObjectWriter(<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> base, 772 <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 773 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType, 774 <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<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>> rootSer, 775 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/PrettyPrinter.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">PrettyPrinter</a> pp, 776 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a> s, 777 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/io/CharacterEscapes.html?is-external=true" title="class or interface in com.fasterxml.jackson.core.io">CharacterEscapes</a> escapes)</pre> 778<div class="block">Copy constructor used for building variations.</div> 779</li> 780</ul> 781<a name="ObjectWriter(com.fasterxml.jackson.databind.ObjectWriter, com.fasterxml.jackson.databind.SerializationConfig)"> 782<!-- --> 783</a> 784<ul class="blockList"> 785<li class="blockList"> 786<h4>ObjectWriter</h4> 787<pre>protected ObjectWriter(<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> base, 788 <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config)</pre> 789<div class="block">Copy constructor used for building variations.</div> 790</li> 791</ul> 792<a name="ObjectWriter(com.fasterxml.jackson.databind.ObjectWriter, com.fasterxml.jackson.core.JsonFactory)"> 793<!-- --> 794</a> 795<ul class="blockListLast"> 796<li class="blockList"> 797<h4>ObjectWriter</h4> 798<pre>protected ObjectWriter(<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> base, 799 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory</a> f)</pre> 800<dl><dt><span class="strong">Since:</span></dt> 801 <dd>2.3</dd></dl> 802</li> 803</ul> 804</li> 805</ul> 806<!-- ============ METHOD DETAIL ========== --> 807<ul class="blockList"> 808<li class="blockList"><a name="method_detail"> 809<!-- --> 810</a> 811<h3>Method Detail</h3> 812<a name="version()"> 813<!-- --> 814</a> 815<ul class="blockList"> 816<li class="blockList"> 817<h4>version</h4> 818<pre>public <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/Version.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Version</a> version()</pre> 819<div class="block">Method that will return version information stored in and read from jar 820 that contains this class.</div> 821<dl> 822<dt><strong>Specified by:</strong></dt> 823<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/Versioned.html?is-external=true#version()" title="class or interface in com.fasterxml.jackson.core">version</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/Versioned.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Versioned</a></code></dd> 824</dl> 825</li> 826</ul> 827<a name="with(com.fasterxml.jackson.databind.SerializationFeature)"> 828<!-- --> 829</a> 830<ul class="blockList"> 831<li class="blockList"> 832<h4>with</h4> 833<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> with(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> feature)</pre> 834<div class="block">Method for constructing a new instance that is configured 835 with specified feature enabled.</div> 836</li> 837</ul> 838<a name="with(com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.SerializationFeature...)"> 839<!-- --> 840</a> 841<ul class="blockList"> 842<li class="blockList"> 843<h4>with</h4> 844<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> with(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> first, 845 <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>... other)</pre> 846<div class="block">Method for constructing a new instance that is configured 847 with specified features enabled.</div> 848</li> 849</ul> 850<a name="withFeatures(com.fasterxml.jackson.databind.SerializationFeature...)"> 851<!-- --> 852</a> 853<ul class="blockList"> 854<li class="blockList"> 855<h4>withFeatures</h4> 856<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withFeatures(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>... features)</pre> 857<div class="block">Method for constructing a new instance that is configured 858 with specified features enabled.</div> 859</li> 860</ul> 861<a name="without(com.fasterxml.jackson.databind.SerializationFeature)"> 862<!-- --> 863</a> 864<ul class="blockList"> 865<li class="blockList"> 866<h4>without</h4> 867<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> without(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> feature)</pre> 868<div class="block">Method for constructing a new instance that is configured 869 with specified feature enabled.</div> 870</li> 871</ul> 872<a name="without(com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.SerializationFeature...)"> 873<!-- --> 874</a> 875<ul class="blockList"> 876<li class="blockList"> 877<h4>without</h4> 878<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> without(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> first, 879 <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>... other)</pre> 880<div class="block">Method for constructing a new instance that is configured 881 with specified features enabled.</div> 882</li> 883</ul> 884<a name="withoutFeatures(com.fasterxml.jackson.databind.SerializationFeature...)"> 885<!-- --> 886</a> 887<ul class="blockList"> 888<li class="blockList"> 889<h4>withoutFeatures</h4> 890<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withoutFeatures(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>... features)</pre> 891<div class="block">Method for constructing a new instance that is configured 892 with specified features enabled.</div> 893</li> 894</ul> 895<a name="with(java.text.DateFormat)"> 896<!-- --> 897</a> 898<ul class="blockList"> 899<li class="blockList"> 900<h4>with</h4> 901<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> with(<a href="http://docs.oracle.com/javase/6/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text">DateFormat</a> df)</pre> 902<div class="block">Fluent factory method that will construct a new writer instance that will 903 use specified date format for serializing dates; or if null passed, one 904 that will serialize dates as numeric timestamps. 905<p> 906 Note that the method does NOT change state of this reader, but 907 rather construct and returns a newly configured instance.</div> 908</li> 909</ul> 910<a name="withDefaultPrettyPrinter()"> 911<!-- --> 912</a> 913<ul class="blockList"> 914<li class="blockList"> 915<h4>withDefaultPrettyPrinter</h4> 916<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withDefaultPrettyPrinter()</pre> 917<div class="block">Method that will construct a new instance that will use the default 918 pretty printer for serialization.</div> 919</li> 920</ul> 921<a name="with(com.fasterxml.jackson.databind.ser.FilterProvider)"> 922<!-- --> 923</a> 924<ul class="blockList"> 925<li class="blockList"> 926<h4>with</h4> 927<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> with(<a href="../../../../com/fasterxml/jackson/databind/ser/FilterProvider.html" title="class in com.fasterxml.jackson.databind.ser">FilterProvider</a> filterProvider)</pre> 928<div class="block">Method that will construct a new instance that uses specified 929 provider for resolving filter instances by id.</div> 930</li> 931</ul> 932<a name="with(com.fasterxml.jackson.core.PrettyPrinter)"> 933<!-- --> 934</a> 935<ul class="blockList"> 936<li class="blockList"> 937<h4>with</h4> 938<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> with(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/PrettyPrinter.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">PrettyPrinter</a> pp)</pre> 939<div class="block">Method that will construct a new instance that will use specified pretty 940 printer (or, if null, will not do any pretty-printing)</div> 941</li> 942</ul> 943<a name="withRootName(java.lang.String)"> 944<!-- --> 945</a> 946<ul class="blockList"> 947<li class="blockList"> 948<h4>withRootName</h4> 949<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withRootName(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> rootName)</pre> 950<div class="block">Method for constructing a new instance with configuration that 951 specifies what root name to use for "root element wrapping". 952 See <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html#withRootName(java.lang.String)"><code>SerializationConfig.withRootName(String)</code></a> for details. 953<p> 954 Note that method does NOT change state of this reader, but 955 rather construct and returns a newly configured instance.</div> 956</li> 957</ul> 958<a name="withSchema(com.fasterxml.jackson.core.FormatSchema)"> 959<!-- --> 960</a> 961<ul class="blockList"> 962<li class="blockList"> 963<h4>withSchema</h4> 964<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withSchema(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a> schema)</pre> 965<div class="block">Method that will construct a new instance that uses specific format schema 966 for serialization. 967<p> 968 Note that method does NOT change state of this reader, but 969 rather construct and returns a newly configured instance.</div> 970</li> 971</ul> 972<a name="withType(com.fasterxml.jackson.databind.JavaType)"> 973<!-- --> 974</a> 975<ul class="blockList"> 976<li class="blockList"> 977<h4>withType</h4> 978<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withType(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType)</pre> 979<div class="block">Method that will construct a new instance that uses specific type 980 as the root type for serialization, instead of runtime dynamic 981 type of the root object itself. 982<p> 983 Note that method does NOT change state of this reader, but 984 rather construct and returns a newly configured instance.</div> 985</li> 986</ul> 987<a name="withType(java.lang.Class)"> 988<!-- --> 989</a> 990<ul class="blockList"> 991<li class="blockList"> 992<h4>withType</h4> 993<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withType(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rootType)</pre> 994<div class="block">Method that will construct a new instance that uses specific type 995 as the root type for serialization, instead of runtime dynamic 996 type of the root object itself.</div> 997</li> 998</ul> 999<a name="withType(com.fasterxml.jackson.core.type.TypeReference)"> 1000<!-- --> 1001</a> 1002<ul class="blockList"> 1003<li class="blockList"> 1004<h4>withType</h4> 1005<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withType(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/type/TypeReference.html?is-external=true" title="class or interface in com.fasterxml.jackson.core.type">TypeReference</a><?> rootType)</pre> 1006</li> 1007</ul> 1008<a name="withView(java.lang.Class)"> 1009<!-- --> 1010</a> 1011<ul class="blockList"> 1012<li class="blockList"> 1013<h4>withView</h4> 1014<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withView(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> view)</pre> 1015<div class="block">Method that will construct a new instance that uses specified 1016 serialization view for serialization (with null basically disables 1017 view processing) 1018<p> 1019 Note that the method does NOT change state of this reader, but 1020 rather construct and returns a newly configured instance.</div> 1021</li> 1022</ul> 1023<a name="with(java.util.Locale)"> 1024<!-- --> 1025</a> 1026<ul class="blockList"> 1027<li class="blockList"> 1028<h4>with</h4> 1029<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> with(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> l)</pre> 1030</li> 1031</ul> 1032<a name="with(java.util.TimeZone)"> 1033<!-- --> 1034</a> 1035<ul class="blockList"> 1036<li class="blockList"> 1037<h4>with</h4> 1038<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> with(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</a> tz)</pre> 1039</li> 1040</ul> 1041<a name="with(com.fasterxml.jackson.core.Base64Variant)"> 1042<!-- --> 1043</a> 1044<ul class="blockList"> 1045<li class="blockList"> 1046<h4>with</h4> 1047<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> with(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/Base64Variant.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Base64Variant</a> b64variant)</pre> 1048<div class="block">Method that will construct a new instance that uses specified default 1049 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/Base64Variant.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>Base64Variant</code></a> for base64 encoding</div> 1050<dl><dt><span class="strong">Since:</span></dt> 1051 <dd>2.1</dd></dl> 1052</li> 1053</ul> 1054<a name="with(com.fasterxml.jackson.core.io.CharacterEscapes)"> 1055<!-- --> 1056</a> 1057<ul class="blockList"> 1058<li class="blockList"> 1059<h4>with</h4> 1060<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> with(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/io/CharacterEscapes.html?is-external=true" title="class or interface in com.fasterxml.jackson.core.io">CharacterEscapes</a> escapes)</pre> 1061<dl><dt><span class="strong">Since:</span></dt> 1062 <dd>2.3</dd></dl> 1063</li> 1064</ul> 1065<a name="with(com.fasterxml.jackson.core.JsonFactory)"> 1066<!-- --> 1067</a> 1068<ul class="blockList"> 1069<li class="blockList"> 1070<h4>with</h4> 1071<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> with(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory</a> f)</pre> 1072<dl><dt><span class="strong">Since:</span></dt> 1073 <dd>2.3</dd></dl> 1074</li> 1075</ul> 1076<a name="with(com.fasterxml.jackson.databind.cfg.ContextAttributes)"> 1077<!-- --> 1078</a> 1079<ul class="blockList"> 1080<li class="blockList"> 1081<h4>with</h4> 1082<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> with(<a href="../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a> attrs)</pre> 1083<dl><dt><span class="strong">Since:</span></dt> 1084 <dd>2.3</dd></dl> 1085</li> 1086</ul> 1087<a name="withAttributes(java.util.Map)"> 1088<!-- --> 1089</a> 1090<ul class="blockList"> 1091<li class="blockList"> 1092<h4>withAttributes</h4> 1093<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withAttributes(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<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>,<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>> attrs)</pre> 1094<dl><dt><span class="strong">Since:</span></dt> 1095 <dd>2.3</dd></dl> 1096</li> 1097</ul> 1098<a name="withAttribute(java.lang.Object, java.lang.Object)"> 1099<!-- --> 1100</a> 1101<ul class="blockList"> 1102<li class="blockList"> 1103<h4>withAttribute</h4> 1104<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withAttribute(<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> key, 1105 <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> value)</pre> 1106<dl><dt><span class="strong">Since:</span></dt> 1107 <dd>2.3</dd></dl> 1108</li> 1109</ul> 1110<a name="withoutAttribute(java.lang.Object)"> 1111<!-- --> 1112</a> 1113<ul class="blockList"> 1114<li class="blockList"> 1115<h4>withoutAttribute</h4> 1116<pre>public <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a> withoutAttribute(<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> key)</pre> 1117<dl><dt><span class="strong">Since:</span></dt> 1118 <dd>2.3</dd></dl> 1119</li> 1120</ul> 1121<a name="isEnabled(com.fasterxml.jackson.databind.SerializationFeature)"> 1122<!-- --> 1123</a> 1124<ul class="blockList"> 1125<li class="blockList"> 1126<h4>isEnabled</h4> 1127<pre>public boolean isEnabled(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> f)</pre> 1128</li> 1129</ul> 1130<a name="isEnabled(com.fasterxml.jackson.databind.MapperFeature)"> 1131<!-- --> 1132</a> 1133<ul class="blockList"> 1134<li class="blockList"> 1135<h4>isEnabled</h4> 1136<pre>public boolean isEnabled(<a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> f)</pre> 1137</li> 1138</ul> 1139<a name="isEnabled(com.fasterxml.jackson.core.JsonParser.Feature)"> 1140<!-- --> 1141</a> 1142<ul class="blockList"> 1143<li class="blockList"> 1144<h4>isEnabled</h4> 1145<pre>public boolean isEnabled(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonParser.Feature.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser.Feature</a> f)</pre> 1146</li> 1147</ul> 1148<a name="getConfig()"> 1149<!-- --> 1150</a> 1151<ul class="blockList"> 1152<li class="blockList"> 1153<h4>getConfig</h4> 1154<pre>public <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> getConfig()</pre> 1155<dl><dt><span class="strong">Since:</span></dt> 1156 <dd>2.2</dd></dl> 1157</li> 1158</ul> 1159<a name="getJsonFactory()"> 1160<!-- --> 1161</a> 1162<ul class="blockList"> 1163<li class="blockList"> 1164<h4>getJsonFactory</h4> 1165<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> 1166public <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory</a> getJsonFactory()</pre> 1167<div class="block"><span class="strong">Deprecated.</span> <i>Since 2.2, use <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#getFactory()"><code>getFactory()</code></a> instead.</i></div> 1168</li> 1169</ul> 1170<a name="getFactory()"> 1171<!-- --> 1172</a> 1173<ul class="blockList"> 1174<li class="blockList"> 1175<h4>getFactory</h4> 1176<pre>public <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory</a> getFactory()</pre> 1177<dl><dt><span class="strong">Since:</span></dt> 1178 <dd>2.2</dd></dl> 1179</li> 1180</ul> 1181<a name="getTypeFactory()"> 1182<!-- --> 1183</a> 1184<ul class="blockList"> 1185<li class="blockList"> 1186<h4>getTypeFactory</h4> 1187<pre>public <a href="../../../../com/fasterxml/jackson/databind/type/TypeFactory.html" title="class in com.fasterxml.jackson.databind.type">TypeFactory</a> getTypeFactory()</pre> 1188</li> 1189</ul> 1190<a name="hasPrefetchedSerializer()"> 1191<!-- --> 1192</a> 1193<ul class="blockList"> 1194<li class="blockList"> 1195<h4>hasPrefetchedSerializer</h4> 1196<pre>public boolean hasPrefetchedSerializer()</pre> 1197<div class="block">Diagnostics method that can be called to check whether this writer 1198 has pre-fetched serializer to use: pre-fetching improves performance 1199 when writer instances are reused as it avoids a per-call serializer 1200 lookup.</div> 1201<dl><dt><span class="strong">Since:</span></dt> 1202 <dd>2.2</dd></dl> 1203</li> 1204</ul> 1205<a name="getAttributes()"> 1206<!-- --> 1207</a> 1208<ul class="blockList"> 1209<li class="blockList"> 1210<h4>getAttributes</h4> 1211<pre>public <a href="../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a> getAttributes()</pre> 1212<dl><dt><span class="strong">Since:</span></dt> 1213 <dd>2.3</dd></dl> 1214</li> 1215</ul> 1216<a name="writeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object)"> 1217<!-- --> 1218</a> 1219<ul class="blockList"> 1220<li class="blockList"> 1221<h4>writeValue</h4> 1222<pre>public void writeValue(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 1223 <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> value) 1224 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>, 1225 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a>, 1226 <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 1227<div class="block">Method that can be used to serialize any Java value as 1228 JSON output, using provided <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator</code></a>.</div> 1229<dl><dt><span class="strong">Throws:</span></dt> 1230<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> 1231<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></code></dd> 1232<dd><code><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd></dl> 1233</li> 1234</ul> 1235<a name="writeValue(java.io.File, java.lang.Object)"> 1236<!-- --> 1237</a> 1238<ul class="blockList"> 1239<li class="blockList"> 1240<h4>writeValue</h4> 1241<pre>public void writeValue(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> resultFile, 1242 <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> value) 1243 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>, 1244 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a>, 1245 <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 1246<div class="block">Method that can be used to serialize any Java value as 1247 JSON output, written to File provided.</div> 1248<dl><dt><span class="strong">Throws:</span></dt> 1249<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> 1250<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></code></dd> 1251<dd><code><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd></dl> 1252</li> 1253</ul> 1254<a name="writeValue(java.io.OutputStream, java.lang.Object)"> 1255<!-- --> 1256</a> 1257<ul class="blockList"> 1258<li class="blockList"> 1259<h4>writeValue</h4> 1260<pre>public void writeValue(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, 1261 <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> value) 1262 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>, 1263 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a>, 1264 <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 1265<div class="block">Method that can be used to serialize any Java value as 1266 JSON output, using output stream provided (using encoding 1267 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonEncoding.html?is-external=true#UTF8" title="class or interface in com.fasterxml.jackson.core"><code>JsonEncoding.UTF8</code></a>). 1268<p> 1269 Note: method does not close the underlying stream explicitly 1270 here; however, <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonFactory</code></a> this mapper uses may choose 1271 to close the stream depending on its settings (by default, 1272 it will try to close it when <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator</code></a> we construct 1273 is closed).</div> 1274<dl><dt><span class="strong">Throws:</span></dt> 1275<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> 1276<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></code></dd> 1277<dd><code><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd></dl> 1278</li> 1279</ul> 1280<a name="writeValue(java.io.Writer, java.lang.Object)"> 1281<!-- --> 1282</a> 1283<ul class="blockList"> 1284<li class="blockList"> 1285<h4>writeValue</h4> 1286<pre>public void writeValue(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a> w, 1287 <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> value) 1288 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>, 1289 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a>, 1290 <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 1291<div class="block">Method that can be used to serialize any Java value as 1292 JSON output, using Writer provided. 1293<p> 1294 Note: method does not close the underlying stream explicitly 1295 here; however, <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonFactory.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonFactory</code></a> this mapper uses may choose 1296 to close the stream depending on its settings (by default, 1297 it will try to close it when <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator</code></a> we construct 1298 is closed).</div> 1299<dl><dt><span class="strong">Throws:</span></dt> 1300<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> 1301<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></code></dd> 1302<dd><code><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd></dl> 1303</li> 1304</ul> 1305<a name="writeValueAsString(java.lang.Object)"> 1306<!-- --> 1307</a> 1308<ul class="blockList"> 1309<li class="blockList"> 1310<h4>writeValueAsString</h4> 1311<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> writeValueAsString(<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> value) 1312 throws <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></pre> 1313<div class="block">Method that can be used to serialize any Java value as 1314 a String. Functionally equivalent to calling 1315 <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValue(java.io.Writer, java.lang.Object)"><code>writeValue(Writer,Object)</code></a> with <a href="http://docs.oracle.com/javase/6/docs/api/java/io/StringWriter.html?is-external=true" title="class or interface in java.io"><code>StringWriter</code></a> 1316 and constructing String, but more efficient. 1317<p> 1318 Note: prior to version 2.1, throws clause included <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>; 2.1 removed it.</div> 1319<dl><dt><span class="strong">Throws:</span></dt> 1320<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></code></dd></dl> 1321</li> 1322</ul> 1323<a name="writeValueAsBytes(java.lang.Object)"> 1324<!-- --> 1325</a> 1326<ul class="blockList"> 1327<li class="blockList"> 1328<h4>writeValueAsBytes</h4> 1329<pre>public byte[] writeValueAsBytes(<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> value) 1330 throws <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></pre> 1331<div class="block">Method that can be used to serialize any Java value as 1332 a byte array. Functionally equivalent to calling 1333 <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValue(java.io.Writer, java.lang.Object)"><code>writeValue(Writer,Object)</code></a> with <a href="http://docs.oracle.com/javase/6/docs/api/java/io/ByteArrayOutputStream.html?is-external=true" title="class or interface in java.io"><code>ByteArrayOutputStream</code></a> 1334 and getting bytes, but more efficient. 1335 Encoding used will be UTF-8. 1336<p> 1337 Note: prior to version 2.1, throws clause included <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>; 2.1 removed it.</div> 1338<dl><dt><span class="strong">Throws:</span></dt> 1339<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></code></dd></dl> 1340</li> 1341</ul> 1342<a name="acceptJsonFormatVisitor(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper)"> 1343<!-- --> 1344</a> 1345<ul class="blockList"> 1346<li class="blockList"> 1347<h4>acceptJsonFormatVisitor</h4> 1348<pre>public void acceptJsonFormatVisitor(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 1349 <a href="../../../../com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper.html" title="interface in com.fasterxml.jackson.databind.jsonFormatVisitors">JsonFormatVisitorWrapper</a> visitor) 1350 throws <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 1351<div class="block">Method for visiting type hierarchy for given type, using specified visitor. 1352 Visitation uses <code>Serializer</code> hierarchy and related properties 1353<p> 1354 This method can be used for things like 1355 generating <a href="http://json-schema.org/">Json Schema</a> 1356 instance for specified type.</div> 1357<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - Type to generate schema for (possibly with generic signature)</dd> 1358<dt><span class="strong">Throws:</span></dt> 1359<dd><code><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd><dt><span class="strong">Since:</span></dt> 1360 <dd>2.2</dd></dl> 1361</li> 1362</ul> 1363<a name="canSerialize(java.lang.Class)"> 1364<!-- --> 1365</a> 1366<ul class="blockList"> 1367<li class="blockList"> 1368<h4>canSerialize</h4> 1369<pre>public boolean canSerialize(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</pre> 1370</li> 1371</ul> 1372<a name="canSerialize(java.lang.Class, java.util.concurrent.atomic.AtomicReference)"> 1373<!-- --> 1374</a> 1375<ul class="blockList"> 1376<li class="blockList"> 1377<h4>canSerialize</h4> 1378<pre>public boolean canSerialize(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 1379 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>> cause)</pre> 1380<div class="block">Method for checking whether instances of given type can be serialized, 1381 and optionally why (as per <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><code>Throwable</code></a> returned).</div> 1382<dl><dt><span class="strong">Since:</span></dt> 1383 <dd>2.3</dd></dl> 1384</li> 1385</ul> 1386<a name="_serializerProvider(com.fasterxml.jackson.databind.SerializationConfig)"> 1387<!-- --> 1388</a> 1389<ul class="blockList"> 1390<li class="blockList"> 1391<h4>_serializerProvider</h4> 1392<pre>protected <a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> _serializerProvider(<a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config)</pre> 1393<div class="block">Overridable helper method used for constructing 1394 <a href="../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind"><code>SerializerProvider</code></a> to use for serialization.</div> 1395</li> 1396</ul> 1397<a name="_verifySchemaType(com.fasterxml.jackson.core.FormatSchema)"> 1398<!-- --> 1399</a> 1400<ul class="blockList"> 1401<li class="blockList"> 1402<h4>_verifySchemaType</h4> 1403<pre>protected void _verifySchemaType(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/FormatSchema.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">FormatSchema</a> schema)</pre> 1404<dl><dt><span class="strong">Since:</span></dt> 1405 <dd>2.2</dd></dl> 1406</li> 1407</ul> 1408<a name="_configAndWriteValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object)"> 1409<!-- --> 1410</a> 1411<ul class="blockList"> 1412<li class="blockList"> 1413<h4>_configAndWriteValue</h4> 1414<pre>protected final void _configAndWriteValue(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 1415 <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> value) 1416 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> 1417<div class="block">Method called to configure the generator as necessary and then 1418 call write functionality</div> 1419<dl><dt><span class="strong">Throws:</span></dt> 1420<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> 1421</li> 1422</ul> 1423<a name="_prefetchRootSerializer(com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.JavaType)"> 1424<!-- --> 1425</a> 1426<ul class="blockListLast"> 1427<li class="blockList"> 1428<h4>_prefetchRootSerializer</h4> 1429<pre>protected <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<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>> _prefetchRootSerializer(<a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 1430 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> valueType)</pre> 1431<div class="block">Method called to locate (root) serializer ahead of time, if permitted 1432 by configuration. Method also is NOT to throw an exception if 1433 access fails.</div> 1434</li> 1435</ul> 1436</li> 1437</ul> 1438</li> 1439</ul> 1440</div> 1441</div> 1442<!-- ========= END OF CLASS DATA ========= --> 1443<!-- ======= START OF BOTTOM NAVBAR ====== --> 1444<div class="bottomNav"><a name="navbar_bottom"> 1445<!-- --> 1446</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 1447<!-- --> 1448</a> 1449<ul class="navList" title="Navigation"> 1450<li><a href="../../../../overview-summary.html">Overview</a></li> 1451<li><a href="package-summary.html">Package</a></li> 1452<li class="navBarCell1Rev">Class</li> 1453<li><a href="class-use/ObjectWriter.html">Use</a></li> 1454<li><a href="package-tree.html">Tree</a></li> 1455<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 1456<li><a href="../../../../index-all.html">Index</a></li> 1457<li><a href="../../../../help-doc.html">Help</a></li> 1458</ul> 1459</div> 1460<div class="subNav"> 1461<ul class="navList"> 1462<li><a href="../../../../com/fasterxml/jackson/databind/ObjectReader.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 1463<li><a href="../../../../com/fasterxml/jackson/databind/PropertyMetadata.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 1464</ul> 1465<ul class="navList"> 1466<li><a href="../../../../index.html?com/fasterxml/jackson/databind/ObjectWriter.html" target="_top">Frames</a></li> 1467<li><a href="ObjectWriter.html" target="_top">No Frames</a></li> 1468</ul> 1469<ul class="navList" id="allclasses_navbar_bottom"> 1470<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 1471</ul> 1472<div> 1473<script type="text/javascript"><!-- 1474 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 1475 if(window==top) { 1476 allClassesLink.style.display = "block"; 1477 } 1478 else { 1479 allClassesLink.style.display = "none"; 1480 } 1481 //--> 1482</script> 1483</div> 1484<div> 1485<ul class="subNavList"> 1486<li>Summary: </li> 1487<li>Nested | </li> 1488<li><a href="#field_summary">Field</a> | </li> 1489<li><a href="#constructor_summary">Constr</a> | </li> 1490<li><a href="#method_summary">Method</a></li> 1491</ul> 1492<ul class="subNavList"> 1493<li>Detail: </li> 1494<li><a href="#field_detail">Field</a> | </li> 1495<li><a href="#constructor_detail">Constr</a> | </li> 1496<li><a href="#method_detail">Method</a></li> 1497</ul> 1498</div> 1499<a name="skip-navbar_bottom"> 1500<!-- --> 1501</a></div> 1502<!-- ======== END OF BOTTOM NAVBAR ======= --> 1503<p class="legalCopy"><small>Copyright © 2014 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 1504</body> 1505</html> 1506