1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_29) on Mon Mar 26 19:07:11 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8ObjectWriter (jackson-databind 2.0.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-03-26"> 12 13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> 14 15<SCRIPT type="text/javascript"> 16function windowTitle() 17{ 18 if (location.href.indexOf('is-external=true') == -1) { 19 parent.document.title="ObjectWriter (jackson-databind 2.0.0 API)"; 20 } 21} 22</SCRIPT> 23<NOSCRIPT> 24</NOSCRIPT> 25 26</HEAD> 27 28<BODY BGCOLOR="white" onload="windowTitle();"> 29<HR> 30 31 32<!-- ========= START OF TOP NAVBAR ======= --> 33<A NAME="navbar_top"><!-- --></A> 34<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 36<TR> 37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 38<A NAME="navbar_top_firstrow"><!-- --></A> 39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 40 <TR ALIGN="center" VALIGN="top"> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ObjectWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 49 </TR> 50</TABLE> 51</TD> 52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 53</EM> 54</TD> 55</TR> 56 57<TR> 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 59 <A HREF="../../../../com/fasterxml/jackson/databind/ObjectReader.html" title="class in com.fasterxml.jackson.databind"><B>PREV CLASS</B></A> 60 <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind"><B>NEXT CLASS</B></A></FONT></TD> 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 62 <A HREF="../../../../index.html?com/fasterxml/jackson/databind/ObjectWriter.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="ObjectWriter.html" target="_top"><B>NO FRAMES</B></A> 64 <SCRIPT type="text/javascript"> 65 <!-- 66 if(window==top) { 67 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 68 } 69 //--> 70</SCRIPT> 71<NOSCRIPT> 72 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 73</NOSCRIPT> 74 75 76</FONT></TD> 77</TR> 78<TR> 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 80 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 82DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 83</TR> 84</TABLE> 85<A NAME="skip-navbar_top"></A> 86<!-- ========= END OF TOP NAVBAR ========= --> 87 88<HR> 89<!-- ======== START OF CLASS DATA ======== --> 90<H2> 91<FONT SIZE="-1"> 92com.fasterxml.jackson.databind</FONT> 93<BR> 94Class ObjectWriter</H2> 95<PRE> 96<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> 97 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.ObjectWriter</B> 98</PRE> 99<DL> 100<DT><B>All Implemented Interfaces:</B> <DD>com.fasterxml.jackson.core.Versioned</DD> 101</DL> 102<HR> 103<DL> 104<DT><PRE>public class <B>ObjectWriter</B><DT>extends <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><DT>implements com.fasterxml.jackson.core.Versioned</DL> 105</PRE> 106 107<P> 108Builder object that can be used for per-serialization configuration of 109 serialization parameters, such as JSON View and root type to use. 110 (and thus fully thread-safe with no external synchronization); 111 new instances are constructed for different configurations. 112 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 113 reused in completely thread-safe manner with no explicit synchronization 114<P> 115 116<P> 117<DL> 118<DT><B>Author:</B></DT> 119 <DD>tatu</DD> 120</DL> 121<HR> 122 123<P> 124<!-- =========== FIELD SUMMARY =========== --> 125 126<A NAME="field_summary"><!-- --></A> 127<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 128<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 129<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 130<B>Field Summary</B></FONT></TH> 131</TR> 132<TR BGCOLOR="white" CLASS="TableRowColor"> 133<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 134<CODE>protected <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A></CODE></FONT></TD> 135<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_config">_config</A></B></CODE> 136 137<BR> 138 General serialization configuration settings</TD> 139</TR> 140<TR BGCOLOR="white" CLASS="TableRowColor"> 141<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 142<CODE>protected com.fasterxml.jackson.core.JsonFactory</CODE></FONT></TD> 143<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_jsonFactory">_jsonFactory</A></B></CODE> 144 145<BR> 146 Factory used for constructing <CODE>JsonGenerator</CODE>s</TD> 147</TR> 148<TR BGCOLOR="white" CLASS="TableRowColor"> 149<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 150<CODE>protected com.fasterxml.jackson.core.PrettyPrinter</CODE></FONT></TD> 151<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_prettyPrinter">_prettyPrinter</A></B></CODE> 152 153<BR> 154 To allow for dynamic enabling/disabling of pretty printing, 155 pretty printer can be optionally configured for writer 156 as well</TD> 157</TR> 158<TR BGCOLOR="white" CLASS="TableRowColor"> 159<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 160<CODE>protected <A HREF="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A></CODE></FONT></TD> 161<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_rootType">_rootType</A></B></CODE> 162 163<BR> 164 Specified root serialization type to use; can be same 165 as runtime type, but usually one of its super types</TD> 166</TR> 167<TR BGCOLOR="white" CLASS="TableRowColor"> 168<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 169<CODE>protected com.fasterxml.jackson.core.FormatSchema</CODE></FONT></TD> 170<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_schema">_schema</A></B></CODE> 171 172<BR> 173 When using data format that uses a schema, schema is passed 174 to generator.</TD> 175</TR> 176<TR BGCOLOR="white" CLASS="TableRowColor"> 177<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 178<CODE>protected <A HREF="../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</A></CODE></FONT></TD> 179<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_serializerFactory">_serializerFactory</A></B></CODE> 180 181<BR> 182 </TD> 183</TR> 184<TR BGCOLOR="white" CLASS="TableRowColor"> 185<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 186<CODE>protected <A HREF="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</A></CODE></FONT></TD> 187<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_serializerProvider">_serializerProvider</A></B></CODE> 188 189<BR> 190 </TD> 191</TR> 192<TR BGCOLOR="white" CLASS="TableRowColor"> 193<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 194<CODE>protected static com.fasterxml.jackson.core.PrettyPrinter</CODE></FONT></TD> 195<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#NULL_PRETTY_PRINTER">NULL_PRETTY_PRINTER</A></B></CODE> 196 197<BR> 198 We need to keep track of explicit disabling of pretty printing; 199 easiest to do by a token value.</TD> 200</TR> 201</TABLE> 202 203<!-- ======== CONSTRUCTOR SUMMARY ======== --> 204 205<A NAME="constructor_summary"><!-- --></A> 206<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 207<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 208<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 209<B>Constructor Summary</B></FONT></TH> 210</TR> 211<TR BGCOLOR="white" CLASS="TableRowColor"> 212<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 213<CODE>protected </CODE></FONT></TD> 214<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#ObjectWriter(com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.databind.SerializationConfig)">ObjectWriter</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind">ObjectMapper</A> mapper, 215 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config)</CODE> 216 217<BR> 218 Alternative constructor for initial instantiation.</TD> 219</TR> 220<TR BGCOLOR="white" CLASS="TableRowColor"> 221<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 222<CODE>protected </CODE></FONT></TD> 223<TD><CODE><B><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></B>(<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 com.fasterxml.jackson.core.FormatSchema s)</CODE> 226 227<BR> 228 Alternative constructor for initial instantiation.</TD> 229</TR> 230<TR BGCOLOR="white" CLASS="TableRowColor"> 231<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 232<CODE>protected </CODE></FONT></TD> 233<TD><CODE><B><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></B>(<A HREF="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind">ObjectMapper</A> mapper, 234 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config, 235 <A HREF="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> rootType, 236 com.fasterxml.jackson.core.PrettyPrinter pp)</CODE> 237 238<BR> 239 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</TD> 240</TR> 241<TR BGCOLOR="white" CLASS="TableRowColor"> 242<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 243<CODE>protected </CODE></FONT></TD> 244<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#ObjectWriter(com.fasterxml.jackson.databind.ObjectWriter, com.fasterxml.jackson.databind.SerializationConfig)">ObjectWriter</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> base, 245 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config)</CODE> 246 247<BR> 248 Copy constructor used for building variations.</TD> 249</TR> 250<TR BGCOLOR="white" CLASS="TableRowColor"> 251<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 252<CODE>protected </CODE></FONT></TD> 253<TD><CODE><B><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.core.PrettyPrinter, com.fasterxml.jackson.core.FormatSchema)">ObjectWriter</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> base, 254 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config, 255 <A HREF="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> rootType, 256 com.fasterxml.jackson.core.PrettyPrinter pp, 257 com.fasterxml.jackson.core.FormatSchema s)</CODE> 258 259<BR> 260 Copy constructor used for building variations.</TD> 261</TR> 262</TABLE> 263 264<!-- ========== METHOD SUMMARY =========== --> 265 266<A NAME="method_summary"><!-- --></A> 267<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 268<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 269<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 270<B>Method Summary</B></FONT></TH> 271</TR> 272<TR BGCOLOR="white" CLASS="TableRowColor"> 273<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 274<CODE>protected void</CODE></FONT></TD> 275<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_configAndWriteValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object)">_configAndWriteValue</A></B>(com.fasterxml.jackson.core.JsonGenerator jgen, 276 <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> 277 278<BR> 279 Method called to configure the generator as necessary and then 280 call write functionality</TD> 281</TR> 282<TR BGCOLOR="white" CLASS="TableRowColor"> 283<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 284<CODE>protected <A HREF="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</A></CODE></FONT></TD> 285<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#_serializerProvider(com.fasterxml.jackson.databind.SerializationConfig)">_serializerProvider</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config)</CODE> 286 287<BR> 288 Overridable helper method used for constructing 289 <A HREF="../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind"><CODE>SerializerProvider</CODE></A> to use for serialization.</TD> 290</TR> 291<TR BGCOLOR="white" CLASS="TableRowColor"> 292<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 293<CODE> boolean</CODE></FONT></TD> 294<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#canSerialize(java.lang.Class)">canSerialize</A></B>(<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> 295 296<BR> 297 </TD> 298</TR> 299<TR BGCOLOR="white" CLASS="TableRowColor"> 300<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 301<CODE> com.fasterxml.jackson.core.JsonFactory</CODE></FONT></TD> 302<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#getJsonFactory()">getJsonFactory</A></B>()</CODE> 303 304<BR> 305 </TD> 306</TR> 307<TR BGCOLOR="white" CLASS="TableRowColor"> 308<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 309<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/type/TypeFactory.html" title="class in com.fasterxml.jackson.databind.type">TypeFactory</A></CODE></FONT></TD> 310<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#getTypeFactory()">getTypeFactory</A></B>()</CODE> 311 312<BR> 313 </TD> 314</TR> 315<TR BGCOLOR="white" CLASS="TableRowColor"> 316<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 317<CODE> boolean</CODE></FONT></TD> 318<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#isEnabled(com.fasterxml.jackson.core.JsonParser.Feature)">isEnabled</A></B>(com.fasterxml.jackson.core.JsonParser.Feature f)</CODE> 319 320<BR> 321 </TD> 322</TR> 323<TR BGCOLOR="white" CLASS="TableRowColor"> 324<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 325<CODE> boolean</CODE></FONT></TD> 326<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#isEnabled(com.fasterxml.jackson.databind.MapperFeature)">isEnabled</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</A> f)</CODE> 327 328<BR> 329 </TD> 330</TR> 331<TR BGCOLOR="white" CLASS="TableRowColor"> 332<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 333<CODE> boolean</CODE></FONT></TD> 334<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#isEnabled(com.fasterxml.jackson.databind.SerializationFeature)">isEnabled</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> f)</CODE> 335 336<BR> 337 </TD> 338</TR> 339<TR BGCOLOR="white" CLASS="TableRowColor"> 340<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 341<CODE> com.fasterxml.jackson.core.Version</CODE></FONT></TD> 342<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#version()">version</A></B>()</CODE> 343 344<BR> 345 Method that will return version information stored in and read from jar 346 that contains this class.</TD> 347</TR> 348<TR BGCOLOR="white" CLASS="TableRowColor"> 349<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 350<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 351<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(java.text.DateFormat)">with</A></B>(<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> 352 353<BR> 354 Fluent factory method that will construct a new writer instance that will 355 use specified date format for serializing dates; or if null passed, one 356 that will serialize dates as numeric timestamps.</TD> 357</TR> 358<TR BGCOLOR="white" CLASS="TableRowColor"> 359<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 360<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 361<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.databind.ser.FilterProvider)">with</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/ser/FilterProvider.html" title="class in com.fasterxml.jackson.databind.ser">FilterProvider</A> filterProvider)</CODE> 362 363<BR> 364 Method that will construct a new instance that uses specified 365 provider for resolving filter instances by id.</TD> 366</TR> 367<TR BGCOLOR="white" CLASS="TableRowColor"> 368<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 369<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 370<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(java.util.Locale)">with</A></B>(<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> 371 372<BR> 373 </TD> 374</TR> 375<TR BGCOLOR="white" CLASS="TableRowColor"> 376<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 377<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 378<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.core.PrettyPrinter)">with</A></B>(com.fasterxml.jackson.core.PrettyPrinter pp)</CODE> 379 380<BR> 381 Method that will construct a new instance that will use specified pretty 382 printer (or, if null, will not do any pretty-printing)</TD> 383</TR> 384<TR BGCOLOR="white" CLASS="TableRowColor"> 385<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 386<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 387<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.databind.SerializationFeature)">with</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> feature)</CODE> 388 389<BR> 390 Method for constructing a new instance that is configured 391 with specified feature enabled.</TD> 392</TR> 393<TR BGCOLOR="white" CLASS="TableRowColor"> 394<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 395<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 396<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.SerializationFeature...)">with</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> first, 397 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>... other)</CODE> 398 399<BR> 400 Method for constructing a new instance that is configured 401 with specified features enabled.</TD> 402</TR> 403<TR BGCOLOR="white" CLASS="TableRowColor"> 404<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 405<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 406<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(java.util.TimeZone)">with</A></B>(<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> 407 408<BR> 409 </TD> 410</TR> 411<TR BGCOLOR="white" CLASS="TableRowColor"> 412<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 413<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 414<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withDefaultPrettyPrinter()">withDefaultPrettyPrinter</A></B>()</CODE> 415 416<BR> 417 Method that will construct a new instance that will use the default 418 pretty printer for serialization.</TD> 419</TR> 420<TR BGCOLOR="white" CLASS="TableRowColor"> 421<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 422<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 423<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withFeatures(com.fasterxml.jackson.databind.SerializationFeature...)">withFeatures</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>... features)</CODE> 424 425<BR> 426 Method for constructing a new instance that is configured 427 with specified features enabled.</TD> 428</TR> 429<TR BGCOLOR="white" CLASS="TableRowColor"> 430<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 431<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 432<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#without(com.fasterxml.jackson.databind.SerializationFeature)">without</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> feature)</CODE> 433 434<BR> 435 Method for constructing a new instance that is configured 436 with specified feature enabled.</TD> 437</TR> 438<TR BGCOLOR="white" CLASS="TableRowColor"> 439<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 440<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 441<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#without(com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.SerializationFeature...)">without</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> first, 442 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>... other)</CODE> 443 444<BR> 445 Method for constructing a new instance that is configured 446 with specified features enabled.</TD> 447</TR> 448<TR BGCOLOR="white" CLASS="TableRowColor"> 449<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 450<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 451<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withoutFeatures(com.fasterxml.jackson.databind.SerializationFeature...)">withoutFeatures</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>... features)</CODE> 452 453<BR> 454 Method for constructing a new instance that is configured 455 with specified features enabled.</TD> 456</TR> 457<TR BGCOLOR="white" CLASS="TableRowColor"> 458<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 459<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 460<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withRootName(java.lang.String)">withRootName</A></B>(<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> 461 462<BR> 463 Method for constructing a new instance with configuration that 464 specifies what root name to use for "root element wrapping".</TD> 465</TR> 466<TR BGCOLOR="white" CLASS="TableRowColor"> 467<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 468<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 469<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withSchema(com.fasterxml.jackson.core.FormatSchema)">withSchema</A></B>(com.fasterxml.jackson.core.FormatSchema schema)</CODE> 470 471<BR> 472 Method that will construct a new instance that uses specific format schema 473 for serialization.</TD> 474</TR> 475<TR BGCOLOR="white" CLASS="TableRowColor"> 476<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 477<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 478<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withType(java.lang.Class)">withType</A></B>(<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> 479 480<BR> 481 Method that will construct a new instance that uses specific type 482 as the root type for serialization, instead of runtime dynamic 483 type of the root object itself.</TD> 484</TR> 485<TR BGCOLOR="white" CLASS="TableRowColor"> 486<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 487<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 488<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withType(com.fasterxml.jackson.databind.JavaType)">withType</A></B>(<A HREF="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> rootType)</CODE> 489 490<BR> 491 Method that will construct a new instance that uses specific type 492 as the root type for serialization, instead of runtime dynamic 493 type of the root object itself.</TD> 494</TR> 495<TR BGCOLOR="white" CLASS="TableRowColor"> 496<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 497<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 498<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withType(com.fasterxml.jackson.core.type.TypeReference)">withType</A></B>(com.fasterxml.jackson.core.type.TypeReference<?> rootType)</CODE> 499 500<BR> 501 </TD> 502</TR> 503<TR BGCOLOR="white" CLASS="TableRowColor"> 504<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 505<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 506<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withView(java.lang.Class)">withView</A></B>(<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> 507 508<BR> 509 Method that will construct a new instance that uses specified 510 serialization view for serialization (with null basically disables 511 view processing)</TD> 512</TR> 513<TR BGCOLOR="white" CLASS="TableRowColor"> 514<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 515<CODE> void</CODE></FONT></TD> 516<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValue(java.io.File, java.lang.Object)">writeValue</A></B>(<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, 517 <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> 518 519<BR> 520 Method that can be used to serialize any Java value as 521 JSON output, written to File provided.</TD> 522</TR> 523<TR BGCOLOR="white" CLASS="TableRowColor"> 524<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 525<CODE> void</CODE></FONT></TD> 526<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object)">writeValue</A></B>(com.fasterxml.jackson.core.JsonGenerator jgen, 527 <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> 528 529<BR> 530 Method that can be used to serialize any Java value as 531 JSON output, using provided <CODE>JsonGenerator</CODE>.</TD> 532</TR> 533<TR BGCOLOR="white" CLASS="TableRowColor"> 534<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 535<CODE> void</CODE></FONT></TD> 536<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValue(java.io.OutputStream, java.lang.Object)">writeValue</A></B>(<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, 537 <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> 538 539<BR> 540 Method that can be used to serialize any Java value as 541 JSON output, using output stream provided (using encoding 542 <CODE>JsonEncoding.UTF8</CODE>).</TD> 543</TR> 544<TR BGCOLOR="white" CLASS="TableRowColor"> 545<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 546<CODE> void</CODE></FONT></TD> 547<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValue(java.io.Writer, java.lang.Object)">writeValue</A></B>(<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, 548 <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> 549 550<BR> 551 Method that can be used to serialize any Java value as 552 JSON output, using Writer provided.</TD> 553</TR> 554<TR BGCOLOR="white" CLASS="TableRowColor"> 555<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 556<CODE> byte[]</CODE></FONT></TD> 557<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValueAsBytes(java.lang.Object)">writeValueAsBytes</A></B>(<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> 558 559<BR> 560 Method that can be used to serialize any Java value as 561 a byte array.</TD> 562</TR> 563<TR BGCOLOR="white" CLASS="TableRowColor"> 564<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 565<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></FONT></TD> 566<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#writeValueAsString(java.lang.Object)">writeValueAsString</A></B>(<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> 567 568<BR> 569 Method that can be used to serialize any Java value as 570 a String.</TD> 571</TR> 572</TABLE> 573 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 574<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 575<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 576<TH ALIGN="left"><B>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></B></TH> 577</TR> 578<TR BGCOLOR="white" CLASS="TableRowColor"> 579<TD><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></TD> 580</TR> 581</TABLE> 582 583<P> 584 585<!-- ============ FIELD DETAIL =========== --> 586 587<A NAME="field_detail"><!-- --></A> 588<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 589<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 590<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 591<B>Field Detail</B></FONT></TH> 592</TR> 593</TABLE> 594 595<A NAME="NULL_PRETTY_PRINTER"><!-- --></A><H3> 596NULL_PRETTY_PRINTER</H3> 597<PRE> 598protected static final com.fasterxml.jackson.core.PrettyPrinter <B>NULL_PRETTY_PRINTER</B></PRE> 599<DL> 600<DD>We need to keep track of explicit disabling of pretty printing; 601 easiest to do by a token value. 602<P> 603<DL> 604</DL> 605</DL> 606<HR> 607 608<A NAME="_config"><!-- --></A><H3> 609_config</H3> 610<PRE> 611protected final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> <B>_config</B></PRE> 612<DL> 613<DD>General serialization configuration settings 614<P> 615<DL> 616</DL> 617</DL> 618<HR> 619 620<A NAME="_serializerProvider"><!-- --></A><H3> 621_serializerProvider</H3> 622<PRE> 623protected final <A HREF="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</A> <B>_serializerProvider</B></PRE> 624<DL> 625<DL> 626</DL> 627</DL> 628<HR> 629 630<A NAME="_serializerFactory"><!-- --></A><H3> 631_serializerFactory</H3> 632<PRE> 633protected final <A HREF="../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</A> <B>_serializerFactory</B></PRE> 634<DL> 635<DL> 636</DL> 637</DL> 638<HR> 639 640<A NAME="_jsonFactory"><!-- --></A><H3> 641_jsonFactory</H3> 642<PRE> 643protected final com.fasterxml.jackson.core.JsonFactory <B>_jsonFactory</B></PRE> 644<DL> 645<DD>Factory used for constructing <CODE>JsonGenerator</CODE>s 646<P> 647<DL> 648</DL> 649</DL> 650<HR> 651 652<A NAME="_rootType"><!-- --></A><H3> 653_rootType</H3> 654<PRE> 655protected final <A HREF="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> <B>_rootType</B></PRE> 656<DL> 657<DD>Specified root serialization type to use; can be same 658 as runtime type, but usually one of its super types 659<P> 660<DL> 661</DL> 662</DL> 663<HR> 664 665<A NAME="_prettyPrinter"><!-- --></A><H3> 666_prettyPrinter</H3> 667<PRE> 668protected final com.fasterxml.jackson.core.PrettyPrinter <B>_prettyPrinter</B></PRE> 669<DL> 670<DD>To allow for dynamic enabling/disabling of pretty printing, 671 pretty printer can be optionally configured for writer 672 as well 673<P> 674<DL> 675</DL> 676</DL> 677<HR> 678 679<A NAME="_schema"><!-- --></A><H3> 680_schema</H3> 681<PRE> 682protected final com.fasterxml.jackson.core.FormatSchema <B>_schema</B></PRE> 683<DL> 684<DD>When using data format that uses a schema, schema is passed 685 to generator. 686<P> 687<DL> 688</DL> 689</DL> 690 691<!-- ========= CONSTRUCTOR DETAIL ======== --> 692 693<A NAME="constructor_detail"><!-- --></A> 694<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 695<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 696<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 697<B>Constructor Detail</B></FONT></TH> 698</TR> 699</TABLE> 700 701<A NAME="ObjectWriter(com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.core.PrettyPrinter)"><!-- --></A><H3> 702ObjectWriter</H3> 703<PRE> 704protected <B>ObjectWriter</B>(<A HREF="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind">ObjectMapper</A> mapper, 705 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config, 706 <A HREF="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> rootType, 707 com.fasterxml.jackson.core.PrettyPrinter pp)</PRE> 708<DL> 709<DD>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 710<P> 711</DL> 712<HR> 713 714<A NAME="ObjectWriter(com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.databind.SerializationConfig)"><!-- --></A><H3> 715ObjectWriter</H3> 716<PRE> 717protected <B>ObjectWriter</B>(<A HREF="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind">ObjectMapper</A> mapper, 718 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config)</PRE> 719<DL> 720<DD>Alternative constructor for initial instantiation. 721<P> 722</DL> 723<HR> 724 725<A NAME="ObjectWriter(com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.core.FormatSchema)"><!-- --></A><H3> 726ObjectWriter</H3> 727<PRE> 728protected <B>ObjectWriter</B>(<A HREF="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind">ObjectMapper</A> mapper, 729 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config, 730 com.fasterxml.jackson.core.FormatSchema s)</PRE> 731<DL> 732<DD>Alternative constructor for initial instantiation. 733<P> 734</DL> 735<HR> 736 737<A NAME="ObjectWriter(com.fasterxml.jackson.databind.ObjectWriter, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.core.PrettyPrinter, com.fasterxml.jackson.core.FormatSchema)"><!-- --></A><H3> 738ObjectWriter</H3> 739<PRE> 740protected <B>ObjectWriter</B>(<A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> base, 741 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config, 742 <A HREF="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> rootType, 743 com.fasterxml.jackson.core.PrettyPrinter pp, 744 com.fasterxml.jackson.core.FormatSchema s)</PRE> 745<DL> 746<DD>Copy constructor used for building variations. 747<P> 748</DL> 749<HR> 750 751<A NAME="ObjectWriter(com.fasterxml.jackson.databind.ObjectWriter, com.fasterxml.jackson.databind.SerializationConfig)"><!-- --></A><H3> 752ObjectWriter</H3> 753<PRE> 754protected <B>ObjectWriter</B>(<A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> base, 755 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config)</PRE> 756<DL> 757<DD>Copy constructor used for building variations. 758<P> 759</DL> 760 761<!-- ============ METHOD DETAIL ========== --> 762 763<A NAME="method_detail"><!-- --></A> 764<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 765<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 766<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 767<B>Method Detail</B></FONT></TH> 768</TR> 769</TABLE> 770 771<A NAME="version()"><!-- --></A><H3> 772version</H3> 773<PRE> 774public com.fasterxml.jackson.core.Version <B>version</B>()</PRE> 775<DL> 776<DD>Method that will return version information stored in and read from jar 777 that contains this class. 778<P> 779<DD><DL> 780<DT><B>Specified by:</B><DD><CODE>version</CODE> in interface <CODE>com.fasterxml.jackson.core.Versioned</CODE></DL> 781</DD> 782<DD><DL> 783</DL> 784</DD> 785</DL> 786<HR> 787 788<A NAME="with(com.fasterxml.jackson.databind.SerializationFeature)"><!-- --></A><H3> 789with</H3> 790<PRE> 791public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>with</B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> feature)</PRE> 792<DL> 793<DD>Method for constructing a new instance that is configured 794 with specified feature enabled. 795<P> 796<DD><DL> 797</DL> 798</DD> 799<DD><DL> 800</DL> 801</DD> 802</DL> 803<HR> 804 805<A NAME="with(com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.SerializationFeature...)"><!-- --></A><H3> 806with</H3> 807<PRE> 808public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>with</B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> first, 809 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>... other)</PRE> 810<DL> 811<DD>Method for constructing a new instance that is configured 812 with specified features enabled. 813<P> 814<DD><DL> 815</DL> 816</DD> 817<DD><DL> 818</DL> 819</DD> 820</DL> 821<HR> 822 823<A NAME="withFeatures(com.fasterxml.jackson.databind.SerializationFeature...)"><!-- --></A><H3> 824withFeatures</H3> 825<PRE> 826public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>withFeatures</B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>... features)</PRE> 827<DL> 828<DD>Method for constructing a new instance that is configured 829 with specified features enabled. 830<P> 831<DD><DL> 832</DL> 833</DD> 834<DD><DL> 835</DL> 836</DD> 837</DL> 838<HR> 839 840<A NAME="without(com.fasterxml.jackson.databind.SerializationFeature)"><!-- --></A><H3> 841without</H3> 842<PRE> 843public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>without</B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> feature)</PRE> 844<DL> 845<DD>Method for constructing a new instance that is configured 846 with specified feature enabled. 847<P> 848<DD><DL> 849</DL> 850</DD> 851<DD><DL> 852</DL> 853</DD> 854</DL> 855<HR> 856 857<A NAME="without(com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.SerializationFeature...)"><!-- --></A><H3> 858without</H3> 859<PRE> 860public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>without</B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> first, 861 <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>... other)</PRE> 862<DL> 863<DD>Method for constructing a new instance that is configured 864 with specified features enabled. 865<P> 866<DD><DL> 867</DL> 868</DD> 869<DD><DL> 870</DL> 871</DD> 872</DL> 873<HR> 874 875<A NAME="withoutFeatures(com.fasterxml.jackson.databind.SerializationFeature...)"><!-- --></A><H3> 876withoutFeatures</H3> 877<PRE> 878public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>withoutFeatures</B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>... features)</PRE> 879<DL> 880<DD>Method for constructing a new instance that is configured 881 with specified features enabled. 882<P> 883<DD><DL> 884</DL> 885</DD> 886<DD><DL> 887</DL> 888</DD> 889</DL> 890<HR> 891 892<A NAME="with(java.text.DateFormat)"><!-- --></A><H3> 893with</H3> 894<PRE> 895public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>with</B>(<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> 896<DL> 897<DD>Fluent factory method that will construct a new writer instance that will 898 use specified date format for serializing dates; or if null passed, one 899 that will serialize dates as numeric timestamps. 900<p> 901 Note that the method does NOT change state of this reader, but 902 rather construct and returns a newly configured instance. 903<P> 904<DD><DL> 905</DL> 906</DD> 907<DD><DL> 908</DL> 909</DD> 910</DL> 911<HR> 912 913<A NAME="withDefaultPrettyPrinter()"><!-- --></A><H3> 914withDefaultPrettyPrinter</H3> 915<PRE> 916public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>withDefaultPrettyPrinter</B>()</PRE> 917<DL> 918<DD>Method that will construct a new instance that will use the default 919 pretty printer for serialization. 920<P> 921<DD><DL> 922</DL> 923</DD> 924<DD><DL> 925</DL> 926</DD> 927</DL> 928<HR> 929 930<A NAME="with(com.fasterxml.jackson.databind.ser.FilterProvider)"><!-- --></A><H3> 931with</H3> 932<PRE> 933public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>with</B>(<A HREF="../../../../com/fasterxml/jackson/databind/ser/FilterProvider.html" title="class in com.fasterxml.jackson.databind.ser">FilterProvider</A> filterProvider)</PRE> 934<DL> 935<DD>Method that will construct a new instance that uses specified 936 provider for resolving filter instances by id. 937<P> 938<DD><DL> 939</DL> 940</DD> 941<DD><DL> 942</DL> 943</DD> 944</DL> 945<HR> 946 947<A NAME="with(com.fasterxml.jackson.core.PrettyPrinter)"><!-- --></A><H3> 948with</H3> 949<PRE> 950public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>with</B>(com.fasterxml.jackson.core.PrettyPrinter pp)</PRE> 951<DL> 952<DD>Method that will construct a new instance that will use specified pretty 953 printer (or, if null, will not do any pretty-printing) 954<P> 955<DD><DL> 956</DL> 957</DD> 958<DD><DL> 959</DL> 960</DD> 961</DL> 962<HR> 963 964<A NAME="withRootName(java.lang.String)"><!-- --></A><H3> 965withRootName</H3> 966<PRE> 967public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>withRootName</B>(<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> 968<DL> 969<DD>Method for constructing a new instance with configuration that 970 specifies what root name to use for "root element wrapping". 971 See <A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html#withRootName(java.lang.String)"><CODE>SerializationConfig.withRootName(String)</CODE></A> for details. 972<p> 973 Note that method does NOT change state of this reader, but 974 rather construct and returns a newly configured instance. 975<P> 976<DD><DL> 977</DL> 978</DD> 979<DD><DL> 980</DL> 981</DD> 982</DL> 983<HR> 984 985<A NAME="withSchema(com.fasterxml.jackson.core.FormatSchema)"><!-- --></A><H3> 986withSchema</H3> 987<PRE> 988public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>withSchema</B>(com.fasterxml.jackson.core.FormatSchema schema)</PRE> 989<DL> 990<DD>Method that will construct a new instance that uses specific format schema 991 for serialization. 992<p> 993 Note that method does NOT change state of this reader, but 994 rather construct and returns a newly configured instance. 995<P> 996<DD><DL> 997</DL> 998</DD> 999<DD><DL> 1000</DL> 1001</DD> 1002</DL> 1003<HR> 1004 1005<A NAME="withType(com.fasterxml.jackson.databind.JavaType)"><!-- --></A><H3> 1006withType</H3> 1007<PRE> 1008public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>withType</B>(<A HREF="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> rootType)</PRE> 1009<DL> 1010<DD>Method that will construct a new instance that uses specific type 1011 as the root type for serialization, instead of runtime dynamic 1012 type of the root object itself. 1013<p> 1014 Note that method does NOT change state of this reader, but 1015 rather construct and returns a newly configured instance. 1016<P> 1017<DD><DL> 1018</DL> 1019</DD> 1020<DD><DL> 1021</DL> 1022</DD> 1023</DL> 1024<HR> 1025 1026<A NAME="withType(java.lang.Class)"><!-- --></A><H3> 1027withType</H3> 1028<PRE> 1029public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>withType</B>(<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> 1030<DL> 1031<DD>Method that will construct a new instance that uses specific type 1032 as the root type for serialization, instead of runtime dynamic 1033 type of the root object itself. 1034<P> 1035<DD><DL> 1036</DL> 1037</DD> 1038<DD><DL> 1039</DL> 1040</DD> 1041</DL> 1042<HR> 1043 1044<A NAME="withType(com.fasterxml.jackson.core.type.TypeReference)"><!-- --></A><H3> 1045withType</H3> 1046<PRE> 1047public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>withType</B>(com.fasterxml.jackson.core.type.TypeReference<?> rootType)</PRE> 1048<DL> 1049<DD><DL> 1050</DL> 1051</DD> 1052<DD><DL> 1053</DL> 1054</DD> 1055</DL> 1056<HR> 1057 1058<A NAME="withView(java.lang.Class)"><!-- --></A><H3> 1059withView</H3> 1060<PRE> 1061public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>withView</B>(<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> 1062<DL> 1063<DD>Method that will construct a new instance that uses specified 1064 serialization view for serialization (with null basically disables 1065 view processing) 1066<p> 1067 Note that the method does NOT change state of this reader, but 1068 rather construct and returns a newly configured instance. 1069<P> 1070<DD><DL> 1071</DL> 1072</DD> 1073<DD><DL> 1074</DL> 1075</DD> 1076</DL> 1077<HR> 1078 1079<A NAME="with(java.util.Locale)"><!-- --></A><H3> 1080with</H3> 1081<PRE> 1082public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>with</B>(<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> 1083<DL> 1084<DD><DL> 1085</DL> 1086</DD> 1087<DD><DL> 1088</DL> 1089</DD> 1090</DL> 1091<HR> 1092 1093<A NAME="with(java.util.TimeZone)"><!-- --></A><H3> 1094with</H3> 1095<PRE> 1096public <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> <B>with</B>(<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> 1097<DL> 1098<DD><DL> 1099</DL> 1100</DD> 1101<DD><DL> 1102</DL> 1103</DD> 1104</DL> 1105<HR> 1106 1107<A NAME="isEnabled(com.fasterxml.jackson.databind.SerializationFeature)"><!-- --></A><H3> 1108isEnabled</H3> 1109<PRE> 1110public boolean <B>isEnabled</B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> f)</PRE> 1111<DL> 1112<DD><DL> 1113</DL> 1114</DD> 1115<DD><DL> 1116</DL> 1117</DD> 1118</DL> 1119<HR> 1120 1121<A NAME="isEnabled(com.fasterxml.jackson.databind.MapperFeature)"><!-- --></A><H3> 1122isEnabled</H3> 1123<PRE> 1124public boolean <B>isEnabled</B>(<A HREF="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</A> f)</PRE> 1125<DL> 1126<DD><DL> 1127</DL> 1128</DD> 1129<DD><DL> 1130</DL> 1131</DD> 1132</DL> 1133<HR> 1134 1135<A NAME="isEnabled(com.fasterxml.jackson.core.JsonParser.Feature)"><!-- --></A><H3> 1136isEnabled</H3> 1137<PRE> 1138public boolean <B>isEnabled</B>(com.fasterxml.jackson.core.JsonParser.Feature f)</PRE> 1139<DL> 1140<DD><DL> 1141</DL> 1142</DD> 1143<DD><DL> 1144</DL> 1145</DD> 1146</DL> 1147<HR> 1148 1149<A NAME="getJsonFactory()"><!-- --></A><H3> 1150getJsonFactory</H3> 1151<PRE> 1152public com.fasterxml.jackson.core.JsonFactory <B>getJsonFactory</B>()</PRE> 1153<DL> 1154<DD><DL> 1155</DL> 1156</DD> 1157<DD><DL> 1158</DL> 1159</DD> 1160</DL> 1161<HR> 1162 1163<A NAME="getTypeFactory()"><!-- --></A><H3> 1164getTypeFactory</H3> 1165<PRE> 1166public <A HREF="../../../../com/fasterxml/jackson/databind/type/TypeFactory.html" title="class in com.fasterxml.jackson.databind.type">TypeFactory</A> <B>getTypeFactory</B>()</PRE> 1167<DL> 1168<DD><DL> 1169</DL> 1170</DD> 1171<DD><DL> 1172</DL> 1173</DD> 1174</DL> 1175<HR> 1176 1177<A NAME="writeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object)"><!-- --></A><H3> 1178writeValue</H3> 1179<PRE> 1180public void <B>writeValue</B>(com.fasterxml.jackson.core.JsonGenerator jgen, 1181 <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) 1182 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>, 1183 com.fasterxml.jackson.core.JsonGenerationException, 1184 <A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></PRE> 1185<DL> 1186<DD>Method that can be used to serialize any Java value as 1187 JSON output, using provided <CODE>JsonGenerator</CODE>. 1188<P> 1189<DD><DL> 1190</DL> 1191</DD> 1192<DD><DL> 1193 1194<DT><B>Throws:</B> 1195<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> 1196<DD><CODE>com.fasterxml.jackson.core.JsonGenerationException</CODE> 1197<DD><CODE><A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></CODE></DL> 1198</DD> 1199</DL> 1200<HR> 1201 1202<A NAME="writeValue(java.io.File, java.lang.Object)"><!-- --></A><H3> 1203writeValue</H3> 1204<PRE> 1205public void <B>writeValue</B>(<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, 1206 <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) 1207 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>, 1208 com.fasterxml.jackson.core.JsonGenerationException, 1209 <A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></PRE> 1210<DL> 1211<DD>Method that can be used to serialize any Java value as 1212 JSON output, written to File provided. 1213<P> 1214<DD><DL> 1215</DL> 1216</DD> 1217<DD><DL> 1218 1219<DT><B>Throws:</B> 1220<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> 1221<DD><CODE>com.fasterxml.jackson.core.JsonGenerationException</CODE> 1222<DD><CODE><A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></CODE></DL> 1223</DD> 1224</DL> 1225<HR> 1226 1227<A NAME="writeValue(java.io.OutputStream, java.lang.Object)"><!-- --></A><H3> 1228writeValue</H3> 1229<PRE> 1230public void <B>writeValue</B>(<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, 1231 <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) 1232 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>, 1233 com.fasterxml.jackson.core.JsonGenerationException, 1234 <A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></PRE> 1235<DL> 1236<DD>Method that can be used to serialize any Java value as 1237 JSON output, using output stream provided (using encoding 1238 <CODE>JsonEncoding.UTF8</CODE>). 1239<p> 1240 Note: method does not close the underlying stream explicitly 1241 here; however, <CODE>JsonFactory</CODE> this mapper uses may choose 1242 to close the stream depending on its settings (by default, 1243 it will try to close it when <CODE>JsonGenerator</CODE> we construct 1244 is closed). 1245<P> 1246<DD><DL> 1247</DL> 1248</DD> 1249<DD><DL> 1250 1251<DT><B>Throws:</B> 1252<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> 1253<DD><CODE>com.fasterxml.jackson.core.JsonGenerationException</CODE> 1254<DD><CODE><A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></CODE></DL> 1255</DD> 1256</DL> 1257<HR> 1258 1259<A NAME="writeValue(java.io.Writer, java.lang.Object)"><!-- --></A><H3> 1260writeValue</H3> 1261<PRE> 1262public void <B>writeValue</B>(<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, 1263 <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) 1264 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>, 1265 com.fasterxml.jackson.core.JsonGenerationException, 1266 <A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></PRE> 1267<DL> 1268<DD>Method that can be used to serialize any Java value as 1269 JSON output, using Writer provided. 1270<p> 1271 Note: method does not close the underlying stream explicitly 1272 here; however, <CODE>JsonFactory</CODE> this mapper uses may choose 1273 to close the stream depending on its settings (by default, 1274 it will try to close it when <CODE>JsonGenerator</CODE> we construct 1275 is closed). 1276<P> 1277<DD><DL> 1278</DL> 1279</DD> 1280<DD><DL> 1281 1282<DT><B>Throws:</B> 1283<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> 1284<DD><CODE>com.fasterxml.jackson.core.JsonGenerationException</CODE> 1285<DD><CODE><A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></CODE></DL> 1286</DD> 1287</DL> 1288<HR> 1289 1290<A NAME="writeValueAsString(java.lang.Object)"><!-- --></A><H3> 1291writeValueAsString</H3> 1292<PRE> 1293public <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> <B>writeValueAsString</B>(<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) 1294 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>, 1295 com.fasterxml.jackson.core.JsonGenerationException, 1296 <A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></PRE> 1297<DL> 1298<DD>Method that can be used to serialize any Java value as 1299 a String. Functionally equivalent to calling 1300 <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> 1301 and constructing String, but more efficient. 1302<P> 1303<DD><DL> 1304</DL> 1305</DD> 1306<DD><DL> 1307 1308<DT><B>Throws:</B> 1309<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> 1310<DD><CODE>com.fasterxml.jackson.core.JsonGenerationException</CODE> 1311<DD><CODE><A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></CODE></DL> 1312</DD> 1313</DL> 1314<HR> 1315 1316<A NAME="writeValueAsBytes(java.lang.Object)"><!-- --></A><H3> 1317writeValueAsBytes</H3> 1318<PRE> 1319public byte[] <B>writeValueAsBytes</B>(<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) 1320 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>, 1321 com.fasterxml.jackson.core.JsonGenerationException, 1322 <A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></PRE> 1323<DL> 1324<DD>Method that can be used to serialize any Java value as 1325 a byte array. Functionally equivalent to calling 1326 <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> 1327 and getting bytes, but more efficient. 1328 Encoding used will be UTF-8. 1329<P> 1330<DD><DL> 1331</DL> 1332</DD> 1333<DD><DL> 1334 1335<DT><B>Throws:</B> 1336<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> 1337<DD><CODE>com.fasterxml.jackson.core.JsonGenerationException</CODE> 1338<DD><CODE><A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></CODE></DL> 1339</DD> 1340</DL> 1341<HR> 1342 1343<A NAME="canSerialize(java.lang.Class)"><!-- --></A><H3> 1344canSerialize</H3> 1345<PRE> 1346public boolean <B>canSerialize</B>(<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> 1347<DL> 1348<DD><DL> 1349</DL> 1350</DD> 1351<DD><DL> 1352</DL> 1353</DD> 1354</DL> 1355<HR> 1356 1357<A NAME="_serializerProvider(com.fasterxml.jackson.databind.SerializationConfig)"><!-- --></A><H3> 1358_serializerProvider</H3> 1359<PRE> 1360protected <A HREF="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</A> <B>_serializerProvider</B>(<A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config)</PRE> 1361<DL> 1362<DD>Overridable helper method used for constructing 1363 <A HREF="../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind"><CODE>SerializerProvider</CODE></A> to use for serialization. 1364<P> 1365<DD><DL> 1366</DL> 1367</DD> 1368<DD><DL> 1369</DL> 1370</DD> 1371</DL> 1372<HR> 1373 1374<A NAME="_configAndWriteValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object)"><!-- --></A><H3> 1375_configAndWriteValue</H3> 1376<PRE> 1377protected final void <B>_configAndWriteValue</B>(com.fasterxml.jackson.core.JsonGenerator jgen, 1378 <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) 1379 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>, 1380 com.fasterxml.jackson.core.JsonGenerationException, 1381 <A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></PRE> 1382<DL> 1383<DD>Method called to configure the generator as necessary and then 1384 call write functionality 1385<P> 1386<DD><DL> 1387</DL> 1388</DD> 1389<DD><DL> 1390 1391<DT><B>Throws:</B> 1392<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> 1393<DD><CODE>com.fasterxml.jackson.core.JsonGenerationException</CODE> 1394<DD><CODE><A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></CODE></DL> 1395</DD> 1396</DL> 1397<!-- ========= END OF CLASS DATA ========= --> 1398<HR> 1399 1400 1401<!-- ======= START OF BOTTOM NAVBAR ====== --> 1402<A NAME="navbar_bottom"><!-- --></A> 1403<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 1404<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 1405<TR> 1406<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 1407<A NAME="navbar_bottom_firstrow"><!-- --></A> 1408<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 1409 <TR ALIGN="center" VALIGN="top"> 1410 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 1411 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 1412 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 1413 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ObjectWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 1414 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 1415 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 1416 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 1417 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 1418 </TR> 1419</TABLE> 1420</TD> 1421<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 1422</EM> 1423</TD> 1424</TR> 1425 1426<TR> 1427<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 1428 <A HREF="../../../../com/fasterxml/jackson/databind/ObjectReader.html" title="class in com.fasterxml.jackson.databind"><B>PREV CLASS</B></A> 1429 <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind"><B>NEXT CLASS</B></A></FONT></TD> 1430<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 1431 <A HREF="../../../../index.html?com/fasterxml/jackson/databind/ObjectWriter.html" target="_top"><B>FRAMES</B></A> 1432 <A HREF="ObjectWriter.html" target="_top"><B>NO FRAMES</B></A> 1433 <SCRIPT type="text/javascript"> 1434 <!-- 1435 if(window==top) { 1436 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 1437 } 1438 //--> 1439</SCRIPT> 1440<NOSCRIPT> 1441 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 1442</NOSCRIPT> 1443 1444 1445</FONT></TD> 1446</TR> 1447<TR> 1448<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 1449 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 1450<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 1451DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 1452</TR> 1453</TABLE> 1454<A NAME="skip-navbar_bottom"></A> 1455<!-- ======== END OF BOTTOM NAVBAR ======= --> 1456 1457<HR> 1458Copyright © 2012 <a href="http://fasterxml.com">fasterxml.com</a>. All Rights Reserved. 1459</BODY> 1460</HTML> 1461