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:19 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8Uses of Class com.fasterxml.jackson.databind.ObjectWriter (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="Uses of Class com.fasterxml.jackson.databind.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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 44 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </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 PREV 60 NEXT</FONT></TD> 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 62 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind//class-useObjectWriter.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</TABLE> 79<A NAME="skip-navbar_top"></A> 80<!-- ========= END OF TOP NAVBAR ========= --> 81 82<HR> 83<CENTER> 84<H2> 85<B>Uses of Class<br>com.fasterxml.jackson.databind.ObjectWriter</B></H2> 86</CENTER> 87 88<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 89<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 90<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 91Packages that use <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></FONT></TH> 92</TR> 93<TR BGCOLOR="white" CLASS="TableRowColor"> 94<TD><A HREF="#com.fasterxml.jackson.databind"><B>com.fasterxml.jackson.databind</B></A></TD> 95<TD>Contains basic mapper (conversion) functionality that 96allows for converting between regular streaming json content and 97Java objects (beans or Tree Model: support for both is via 98<A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectMapper</CODE></A> class, as well 99as convenience methods included in 100<CODE>JsonParser</CODE> </TD> 101</TR> 102</TABLE> 103 104<P> 105<A NAME="com.fasterxml.jackson.databind"><!-- --></A> 106<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 107<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 108<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 109Uses of <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A> in <A HREF="../../../../../com/fasterxml/jackson/databind/package-summary.html">com.fasterxml.jackson.databind</A></FONT></TH> 110</TR> 111</TABLE> 112 113<P> 114 115<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 116<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 117<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../com/fasterxml/jackson/databind/package-summary.html">com.fasterxml.jackson.databind</A> that return <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></FONT></TH> 118</TR> 119<TR BGCOLOR="white" CLASS="TableRowColor"> 120<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 121<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 122<TD><CODE><B>ObjectWriter.</B><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> 123 124<BR> 125 Fluent factory method that will construct a new writer instance that will 126 use specified date format for serializing dates; or if null passed, one 127 that will serialize dates as numeric timestamps.</TD> 128</TR> 129<TR BGCOLOR="white" CLASS="TableRowColor"> 130<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 131<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 132<TD><CODE><B>ObjectWriter.</B><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> 133 134<BR> 135 Method that will construct a new instance that uses specified 136 provider for resolving filter instances by id.</TD> 137</TR> 138<TR BGCOLOR="white" CLASS="TableRowColor"> 139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 140<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 141<TD><CODE><B>ObjectWriter.</B><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> 142 143<BR> 144 </TD> 145</TR> 146<TR BGCOLOR="white" CLASS="TableRowColor"> 147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 148<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 149<TD><CODE><B>ObjectWriter.</B><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> 150 151<BR> 152 Method that will construct a new instance that will use specified pretty 153 printer (or, if null, will not do any pretty-printing)</TD> 154</TR> 155<TR BGCOLOR="white" CLASS="TableRowColor"> 156<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 157<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 158<TD><CODE><B>ObjectWriter.</B><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> 159 160<BR> 161 Method for constructing a new instance that is configured 162 with specified feature enabled.</TD> 163</TR> 164<TR BGCOLOR="white" CLASS="TableRowColor"> 165<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 166<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 167<TD><CODE><B>ObjectWriter.</B><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, 168 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>... other)</CODE> 169 170<BR> 171 Method for constructing a new instance that is configured 172 with specified features enabled.</TD> 173</TR> 174<TR BGCOLOR="white" CLASS="TableRowColor"> 175<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 176<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 177<TD><CODE><B>ObjectWriter.</B><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> 178 179<BR> 180 </TD> 181</TR> 182<TR BGCOLOR="white" CLASS="TableRowColor"> 183<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 184<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 185<TD><CODE><B>ObjectWriter.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html#withDefaultPrettyPrinter()">withDefaultPrettyPrinter</A></B>()</CODE> 186 187<BR> 188 Method that will construct a new instance that will use the default 189 pretty printer for serialization.</TD> 190</TR> 191<TR BGCOLOR="white" CLASS="TableRowColor"> 192<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 193<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 194<TD><CODE><B>ObjectWriter.</B><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> 195 196<BR> 197 Method for constructing a new instance that is configured 198 with specified features enabled.</TD> 199</TR> 200<TR BGCOLOR="white" CLASS="TableRowColor"> 201<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 202<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 203<TD><CODE><B>ObjectWriter.</B><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> 204 205<BR> 206 Method for constructing a new instance that is configured 207 with specified feature enabled.</TD> 208</TR> 209<TR BGCOLOR="white" CLASS="TableRowColor"> 210<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 211<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 212<TD><CODE><B>ObjectWriter.</B><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, 213 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>... other)</CODE> 214 215<BR> 216 Method for constructing a new instance that is configured 217 with specified features enabled.</TD> 218</TR> 219<TR BGCOLOR="white" CLASS="TableRowColor"> 220<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 221<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 222<TD><CODE><B>ObjectWriter.</B><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> 223 224<BR> 225 Method for constructing a new instance that is configured 226 with specified features enabled.</TD> 227</TR> 228<TR BGCOLOR="white" CLASS="TableRowColor"> 229<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 230<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 231<TD><CODE><B>ObjectWriter.</B><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> 232 233<BR> 234 Method for constructing a new instance with configuration that 235 specifies what root name to use for "root element wrapping".</TD> 236</TR> 237<TR BGCOLOR="white" CLASS="TableRowColor"> 238<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 239<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 240<TD><CODE><B>ObjectWriter.</B><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> 241 242<BR> 243 Method that will construct a new instance that uses specific format schema 244 for serialization.</TD> 245</TR> 246<TR BGCOLOR="white" CLASS="TableRowColor"> 247<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 248<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 249<TD><CODE><B>ObjectWriter.</B><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> 250 251<BR> 252 Method that will construct a new instance that uses specific type 253 as the root type for serialization, instead of runtime dynamic 254 type of the root object itself.</TD> 255</TR> 256<TR BGCOLOR="white" CLASS="TableRowColor"> 257<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 258<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 259<TD><CODE><B>ObjectWriter.</B><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> 260 261<BR> 262 Method that will construct a new instance that uses specific type 263 as the root type for serialization, instead of runtime dynamic 264 type of the root object itself.</TD> 265</TR> 266<TR BGCOLOR="white" CLASS="TableRowColor"> 267<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 268<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 269<TD><CODE><B>ObjectWriter.</B><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> 270 271<BR> 272 </TD> 273</TR> 274<TR BGCOLOR="white" CLASS="TableRowColor"> 275<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 276<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 277<TD><CODE><B>ObjectWriter.</B><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> 278 279<BR> 280 Method that will construct a new instance that uses specified 281 serialization view for serialization (with null basically disables 282 view processing)</TD> 283</TR> 284<TR BGCOLOR="white" CLASS="TableRowColor"> 285<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 286<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 287<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writer()">writer</A></B>()</CODE> 288 289<BR> 290 Convenience method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> 291 with default settings.</TD> 292</TR> 293<TR BGCOLOR="white" CLASS="TableRowColor"> 294<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 295<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 296<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writer(java.text.DateFormat)">writer</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> 297 298<BR> 299 Factory method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> that will 300 serialize objects using specified <A HREF="http://docs.oracle.com/javase/6/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text"><CODE>DateFormat</CODE></A>; or, if 301 null passed, using timestamp (64-bit number.</TD> 302</TR> 303<TR BGCOLOR="white" CLASS="TableRowColor"> 304<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 305<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 306<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writer(com.fasterxml.jackson.databind.ser.FilterProvider)">writer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/FilterProvider.html" title="class in com.fasterxml.jackson.databind.ser">FilterProvider</A> filterProvider)</CODE> 307 308<BR> 309 Factory method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> that will 310 serialize objects using specified filter provider.</TD> 311</TR> 312<TR BGCOLOR="white" CLASS="TableRowColor"> 313<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 314<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 315<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writer(com.fasterxml.jackson.core.FormatSchema)">writer</A></B>(com.fasterxml.jackson.core.FormatSchema schema)</CODE> 316 317<BR> 318 Factory method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> that will 319 pass specific schema object to <CODE>JsonGenerator</CODE> used for 320 writing content.</TD> 321</TR> 322<TR BGCOLOR="white" CLASS="TableRowColor"> 323<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 324<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 325<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writer(com.fasterxml.jackson.core.PrettyPrinter)">writer</A></B>(com.fasterxml.jackson.core.PrettyPrinter pp)</CODE> 326 327<BR> 328 Factory method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> that will 329 serialize objects using specified pretty printer for indentation 330 (or if null, no pretty printer)</TD> 331</TR> 332<TR BGCOLOR="white" CLASS="TableRowColor"> 333<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 334<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 335<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writer(com.fasterxml.jackson.databind.SerializationFeature)">writer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> feature)</CODE> 336 337<BR> 338 Factory method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> with 339 specified feature enabled (compared to settings that this 340 mapper instance has).</TD> 341</TR> 342<TR BGCOLOR="white" CLASS="TableRowColor"> 343<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 344<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 345<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writer(com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.SerializationFeature...)">writer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> first, 346 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>... other)</CODE> 347 348<BR> 349 Factory method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> with 350 specified features enabled (compared to settings that this 351 mapper instance has).</TD> 352</TR> 353<TR BGCOLOR="white" CLASS="TableRowColor"> 354<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 355<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 356<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writerWithDefaultPrettyPrinter()">writerWithDefaultPrettyPrinter</A></B>()</CODE> 357 358<BR> 359 Factory method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> that will 360 serialize objects using the default pretty printer for indentation</TD> 361</TR> 362<TR BGCOLOR="white" CLASS="TableRowColor"> 363<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 364<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 365<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writerWithType(java.lang.Class)">writerWithType</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> 366 367<BR> 368 Factory method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> that will 369 serialize objects using specified root type, instead of actual 370 runtime type of value.</TD> 371</TR> 372<TR BGCOLOR="white" CLASS="TableRowColor"> 373<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 374<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 375<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writerWithType(com.fasterxml.jackson.databind.JavaType)">writerWithType</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> rootType)</CODE> 376 377<BR> 378 Factory method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> that will 379 serialize objects using specified root type, instead of actual 380 runtime type of value.</TD> 381</TR> 382<TR BGCOLOR="white" CLASS="TableRowColor"> 383<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 384<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 385<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writerWithType(com.fasterxml.jackson.core.type.TypeReference)">writerWithType</A></B>(com.fasterxml.jackson.core.type.TypeReference<?> rootType)</CODE> 386 387<BR> 388 Factory method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> that will 389 serialize objects using specified root type, instead of actual 390 runtime type of value.</TD> 391</TR> 392<TR BGCOLOR="white" CLASS="TableRowColor"> 393<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 394<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></CODE></FONT></TD> 395<TD><CODE><B>ObjectMapper.</B><B><A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#writerWithView(java.lang.Class)">writerWithView</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><?> serializationView)</CODE> 396 397<BR> 398 Factory method for constructing <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> that will 399 serialize objects using specified JSON View (filter).</TD> 400</TR> 401</TABLE> 402 403<P> 404 405<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 406<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 407<TH ALIGN="left" COLSPAN="2">Constructors in <A HREF="../../../../../com/fasterxml/jackson/databind/package-summary.html">com.fasterxml.jackson.databind</A> with parameters of type <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</A></FONT></TH> 408</TR> 409<TR BGCOLOR="white" CLASS="TableRowColor"> 410<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, 411 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config)</CODE> 412 413<BR> 414 Copy constructor used for building variations.</TD> 415</TR> 416<TR BGCOLOR="white" CLASS="TableRowColor"> 417<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, 418 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</A> config, 419 <A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> rootType, 420 com.fasterxml.jackson.core.PrettyPrinter pp, 421 com.fasterxml.jackson.core.FormatSchema s)</CODE> 422 423<BR> 424 Copy constructor used for building variations.</TD> 425</TR> 426</TABLE> 427 428<P> 429<HR> 430 431 432<!-- ======= START OF BOTTOM NAVBAR ====== --> 433<A NAME="navbar_bottom"><!-- --></A> 434<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 435<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 436<TR> 437<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 438<A NAME="navbar_bottom_firstrow"><!-- --></A> 439<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 440 <TR ALIGN="center" VALIGN="top"> 441 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 442 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 443 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 444 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 445 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 446 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 447 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 448 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 449 </TR> 450</TABLE> 451</TD> 452<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 453</EM> 454</TD> 455</TR> 456 457<TR> 458<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 459 PREV 460 NEXT</FONT></TD> 461<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 462 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind//class-useObjectWriter.html" target="_top"><B>FRAMES</B></A> 463 <A HREF="ObjectWriter.html" target="_top"><B>NO FRAMES</B></A> 464 <SCRIPT type="text/javascript"> 465 <!-- 466 if(window==top) { 467 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 468 } 469 //--> 470</SCRIPT> 471<NOSCRIPT> 472 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 473</NOSCRIPT> 474 475 476</FONT></TD> 477</TR> 478</TABLE> 479<A NAME="skip-navbar_bottom"></A> 480<!-- ======== END OF BOTTOM NAVBAR ======= --> 481 482<HR> 483Copyright © 2012 <a href="http://fasterxml.com">fasterxml.com</a>. All Rights Reserved. 484</BODY> 485</HTML> 486