1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_79) on Wed Jul 20 08:39:10 PDT 2016 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>SequenceWriter (jackson-databind 2.8.0 API)</title> 8<meta name="date" content="2016-07-20"> 9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 10</head> 11<body> 12<script type="text/javascript"><!-- 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="SequenceWriter (jackson-databind 2.8.0 API)"; 15 } 16//--> 17</script> 18<noscript> 19<div>JavaScript is disabled on your browser.</div> 20</noscript> 21<!-- ========= START OF TOP NAVBAR ======= --> 22<div class="topNav"><a name="navbar_top"> 23<!-- --> 24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 25<!-- --> 26</a> 27<ul class="navList" title="Navigation"> 28<li><a href="../../../../overview-summary.html">Overview</a></li> 29<li><a href="package-summary.html">Package</a></li> 30<li class="navBarCell1Rev">Class</li> 31<li><a href="class-use/SequenceWriter.html">Use</a></li> 32<li><a href="package-tree.html">Tree</a></li> 33<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 34<li><a href="../../../../index-all.html">Index</a></li> 35<li><a href="../../../../help-doc.html">Help</a></li> 36</ul> 37</div> 38<div class="subNav"> 39<ul class="navList"> 40<li><a href="../../../../com/fasterxml/jackson/databind/RuntimeJsonMappingException.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../index.html?com/fasterxml/jackson/databind/SequenceWriter.html" target="_top">Frames</a></li> 45<li><a href="SequenceWriter.html" target="_top">No Frames</a></li> 46</ul> 47<ul class="navList" id="allclasses_navbar_top"> 48<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 49</ul> 50<div> 51<script type="text/javascript"><!-- 52 allClassesLink = document.getElementById("allclasses_navbar_top"); 53 if(window==top) { 54 allClassesLink.style.display = "block"; 55 } 56 else { 57 allClassesLink.style.display = "none"; 58 } 59 //--> 60</script> 61</div> 62<div> 63<ul class="subNavList"> 64<li>Summary: </li> 65<li>Nested | </li> 66<li><a href="#field_summary">Field</a> | </li> 67<li><a href="#constructor_summary">Constr</a> | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li><a href="#field_detail">Field</a> | </li> 73<li><a href="#constructor_detail">Constr</a> | </li> 74<li><a href="#method_detail">Method</a></li> 75</ul> 76</div> 77<a name="skip-navbar_top"> 78<!-- --> 79</a></div> 80<!-- ========= END OF TOP NAVBAR ========= --> 81<!-- ======== START OF CLASS DATA ======== --> 82<div class="header"> 83<div class="subTitle">com.fasterxml.jackson.databind</div> 84<h2 title="Class SequenceWriter" class="title">Class SequenceWriter</h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 89<li> 90<ul class="inheritance"> 91<li>com.fasterxml.jackson.databind.SequenceWriter</li> 92</ul> 93</li> 94</ul> 95<div class="description"> 96<ul class="blockList"> 97<li class="blockList"> 98<dl> 99<dt>All Implemented Interfaces:</dt> 100<dd><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/Versioned.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Versioned</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Flushable.html?is-external=true" title="class or interface in java.io">Flushable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></dd> 101</dl> 102<hr> 103<br> 104<pre>public class <span class="strong">SequenceWriter</span> 105extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> 106implements <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/Versioned.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Versioned</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Flushable.html?is-external=true" title="class or interface in java.io">Flushable</a></pre> 107<div class="block">Writer class similar to <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a>, except that it can be used 108 for writing sequences of values, not just a single value. 109 The main use case is in writing very long sequences, or sequences where 110 values are incrementally produced; cases where it would be impractical 111 or at least inconvenient to construct a wrapper container around values 112 (or where no JSON array is desired around values). 113<p> 114 Differences from <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> include: 115<ul> 116 <li>Instances of <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind"><code>SequenceWriter</code></a> are stateful, and not thread-safe: 117 if sharing, external synchronization must be used. 118 <li>Explicit <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#close()"><code>close()</code></a> is needed after all values have been written 119 (<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> can auto-close after individual value writes) 120</ul></div> 121<dl><dt><span class="strong">Since:</span></dt> 122 <dd>2.5</dd></dl> 123</li> 124</ul> 125</div> 126<div class="summary"> 127<ul class="blockList"> 128<li class="blockList"> 129<!-- =========== FIELD SUMMARY =========== --> 130<ul class="blockList"> 131<li class="blockList"><a name="field_summary"> 132<!-- --> 133</a> 134<h3>Field Summary</h3> 135<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 136<caption><span>Fields</span><span class="tabEnd"> </span></caption> 137<tr> 138<th class="colFirst" scope="col">Modifier and Type</th> 139<th class="colLast" scope="col">Field and Description</th> 140</tr> 141<tr class="altColor"> 142<td class="colFirst"><code>protected boolean</code></td> 143<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_cfgCloseCloseable">_cfgCloseCloseable</a></strong></code> </td> 144</tr> 145<tr class="rowColor"> 146<td class="colFirst"><code>protected boolean</code></td> 147<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_cfgFlush">_cfgFlush</a></strong></code> </td> 148</tr> 149<tr class="altColor"> 150<td class="colFirst"><code>protected boolean</code></td> 151<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_closed">_closed</a></strong></code> </td> 152</tr> 153<tr class="rowColor"> 154<td class="colFirst"><code>protected boolean</code></td> 155<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_closeGenerator">_closeGenerator</a></strong></code> </td> 156</tr> 157<tr class="altColor"> 158<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a></code></td> 159<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_config">_config</a></strong></code> </td> 160</tr> 161<tr class="rowColor"> 162<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap.html" title="class in com.fasterxml.jackson.databind.ser.impl">PropertySerializerMap</a></code></td> 163<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_dynamicSerializers">_dynamicSerializers</a></strong></code> 164<div class="block">If <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_rootSerializer"><code>_rootSerializer</code></a> is not defined (no root type 165 was used for constructing <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a>), we will 166 use simple scheme for keeping track of serializers needed.</div> 167</td> 168</tr> 169<tr class="altColor"> 170<td class="colFirst"><code>protected <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a></code></td> 171<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_generator">_generator</a></strong></code> </td> 172</tr> 173<tr class="rowColor"> 174<td class="colFirst"><code>protected boolean</code></td> 175<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_openArray">_openArray</a></strong></code> 176<div class="block">State flag for keeping track of need to write matching END_ARRAY, 177 if a START_ARRAY was written during initialization</div> 178</td> 179</tr> 180<tr class="altColor"> 181<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a></code></td> 182<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_provider">_provider</a></strong></code> </td> 183</tr> 184<tr class="rowColor"> 185<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></td> 186<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_rootSerializer">_rootSerializer</a></strong></code> </td> 187</tr> 188<tr class="altColor"> 189<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a></code></td> 190<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_typeSerializer">_typeSerializer</a></strong></code> </td> 191</tr> 192</table> 193</li> 194</ul> 195<!-- ======== CONSTRUCTOR SUMMARY ======== --> 196<ul class="blockList"> 197<li class="blockList"><a name="constructor_summary"> 198<!-- --> 199</a> 200<h3>Constructor Summary</h3> 201<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 202<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 203<tr> 204<th class="colOne" scope="col">Constructor and Description</th> 205</tr> 206<tr class="altColor"> 207<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#SequenceWriter(com.fasterxml.jackson.databind.ser.DefaultSerializerProvider,%20com.fasterxml.jackson.core.JsonGenerator,%20boolean,%20com.fasterxml.jackson.databind.ObjectWriter.Prefetch)">SequenceWriter</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> prov, 208 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen, 209 boolean closeGenerator, 210 <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a> prefetch)</code> </td> 211</tr> 212</table> 213</li> 214</ul> 215<!-- ========== METHOD SUMMARY =========== --> 216<ul class="blockList"> 217<li class="blockList"><a name="method_summary"> 218<!-- --> 219</a> 220<h3>Method Summary</h3> 221<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 222<caption><span>Methods</span><span class="tabEnd"> </span></caption> 223<tr> 224<th class="colFirst" scope="col">Modifier and Type</th> 225<th class="colLast" scope="col">Method and Description</th> 226</tr> 227<tr class="altColor"> 228<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a></code></td> 229<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_writeCloseableValue(java.lang.Object)">_writeCloseableValue</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code> </td> 230</tr> 231<tr class="rowColor"> 232<td class="colFirst"><code>protected <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a></code></td> 233<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_writeCloseableValue(java.lang.Object,%20com.fasterxml.jackson.databind.JavaType)">_writeCloseableValue</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 234 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type)</code> </td> 235</tr> 236<tr class="altColor"> 237<td class="colFirst"><code>void</code></td> 238<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#close()">close</a></strong>()</code> </td> 239</tr> 240<tr class="rowColor"> 241<td class="colFirst"><code>void</code></td> 242<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#flush()">flush</a></strong>()</code> </td> 243</tr> 244<tr class="altColor"> 245<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a></code></td> 246<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#init(boolean)">init</a></strong>(boolean wrapInArray)</code> </td> 247</tr> 248<tr class="rowColor"> 249<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/Version.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Version</a></code></td> 250<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#version()">version</a></strong>()</code> 251<div class="block">Method that will return version information stored in and read from jar 252 that contains this class.</div> 253</td> 254</tr> 255<tr class="altColor"> 256<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a></code></td> 257<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#write(java.lang.Object)">write</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code> 258<div class="block">Method for writing given value into output, as part of sequence 259 to write.</div> 260</td> 261</tr> 262<tr class="rowColor"> 263<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a></code></td> 264<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#write(java.lang.Object,%20com.fasterxml.jackson.databind.JavaType)">write</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 265 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type)</code> 266<div class="block">Method for writing given value into output, as part of sequence 267 to write; further, full type (often generic, like <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> 268 is passed in case a new 269 <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind"><code>JsonSerializer</code></a> needs to be fetched to handle type 270 271 If root type was specified for <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a>, 272 value must be of compatible type (same or subtype).</div> 273</td> 274</tr> 275<tr class="altColor"> 276<td class="colFirst"><code><C extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><?>> <br><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a></code></td> 277<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#writeAll(C)">writeAll</a></strong>(C container)</code> </td> 278</tr> 279<tr class="rowColor"> 280<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a></code></td> 281<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#writeAll(java.lang.Iterable)">writeAll</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><?> iterable)</code> </td> 282</tr> 283<tr class="altColor"> 284<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a></code></td> 285<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#writeAll(java.lang.Object[])">writeAll</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] value)</code> </td> 286</tr> 287</table> 288<ul class="blockList"> 289<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 290<!-- --> 291</a> 292<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 293<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> 294</ul> 295</li> 296</ul> 297</li> 298</ul> 299</div> 300<div class="details"> 301<ul class="blockList"> 302<li class="blockList"> 303<!-- ============ FIELD DETAIL =========== --> 304<ul class="blockList"> 305<li class="blockList"><a name="field_detail"> 306<!-- --> 307</a> 308<h3>Field Detail</h3> 309<a name="_provider"> 310<!-- --> 311</a> 312<ul class="blockList"> 313<li class="blockList"> 314<h4>_provider</h4> 315<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> _provider</pre> 316</li> 317</ul> 318<a name="_config"> 319<!-- --> 320</a> 321<ul class="blockList"> 322<li class="blockList"> 323<h4>_config</h4> 324<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> _config</pre> 325</li> 326</ul> 327<a name="_generator"> 328<!-- --> 329</a> 330<ul class="blockList"> 331<li class="blockList"> 332<h4>_generator</h4> 333<pre>protected final <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> _generator</pre> 334</li> 335</ul> 336<a name="_rootSerializer"> 337<!-- --> 338</a> 339<ul class="blockList"> 340<li class="blockList"> 341<h4>_rootSerializer</h4> 342<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> _rootSerializer</pre> 343</li> 344</ul> 345<a name="_typeSerializer"> 346<!-- --> 347</a> 348<ul class="blockList"> 349<li class="blockList"> 350<h4>_typeSerializer</h4> 351<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> _typeSerializer</pre> 352</li> 353</ul> 354<a name="_closeGenerator"> 355<!-- --> 356</a> 357<ul class="blockList"> 358<li class="blockList"> 359<h4>_closeGenerator</h4> 360<pre>protected final boolean _closeGenerator</pre> 361</li> 362</ul> 363<a name="_cfgFlush"> 364<!-- --> 365</a> 366<ul class="blockList"> 367<li class="blockList"> 368<h4>_cfgFlush</h4> 369<pre>protected final boolean _cfgFlush</pre> 370</li> 371</ul> 372<a name="_cfgCloseCloseable"> 373<!-- --> 374</a> 375<ul class="blockList"> 376<li class="blockList"> 377<h4>_cfgCloseCloseable</h4> 378<pre>protected final boolean _cfgCloseCloseable</pre> 379</li> 380</ul> 381<a name="_dynamicSerializers"> 382<!-- --> 383</a> 384<ul class="blockList"> 385<li class="blockList"> 386<h4>_dynamicSerializers</h4> 387<pre>protected <a href="../../../../com/fasterxml/jackson/databind/ser/impl/PropertySerializerMap.html" title="class in com.fasterxml.jackson.databind.ser.impl">PropertySerializerMap</a> _dynamicSerializers</pre> 388<div class="block">If <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html#_rootSerializer"><code>_rootSerializer</code></a> is not defined (no root type 389 was used for constructing <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a>), we will 390 use simple scheme for keeping track of serializers needed. 391 Assumption is that</div> 392</li> 393</ul> 394<a name="_openArray"> 395<!-- --> 396</a> 397<ul class="blockList"> 398<li class="blockList"> 399<h4>_openArray</h4> 400<pre>protected boolean _openArray</pre> 401<div class="block">State flag for keeping track of need to write matching END_ARRAY, 402 if a START_ARRAY was written during initialization</div> 403</li> 404</ul> 405<a name="_closed"> 406<!-- --> 407</a> 408<ul class="blockListLast"> 409<li class="blockList"> 410<h4>_closed</h4> 411<pre>protected boolean _closed</pre> 412</li> 413</ul> 414</li> 415</ul> 416<!-- ========= CONSTRUCTOR DETAIL ======== --> 417<ul class="blockList"> 418<li class="blockList"><a name="constructor_detail"> 419<!-- --> 420</a> 421<h3>Constructor Detail</h3> 422<a name="SequenceWriter(com.fasterxml.jackson.databind.ser.DefaultSerializerProvider, com.fasterxml.jackson.core.JsonGenerator, boolean, com.fasterxml.jackson.databind.ObjectWriter.Prefetch)"> 423<!-- --> 424</a> 425<ul class="blockListLast"> 426<li class="blockList"> 427<h4>SequenceWriter</h4> 428<pre>public SequenceWriter(<a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> prov, 429 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen, 430 boolean closeGenerator, 431 <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a> prefetch) 432 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 433<dl><dt><span class="strong">Throws:</span></dt> 434<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 435</li> 436</ul> 437</li> 438</ul> 439<!-- ============ METHOD DETAIL ========== --> 440<ul class="blockList"> 441<li class="blockList"><a name="method_detail"> 442<!-- --> 443</a> 444<h3>Method Detail</h3> 445<a name="init(boolean)"> 446<!-- --> 447</a> 448<ul class="blockList"> 449<li class="blockList"> 450<h4>init</h4> 451<pre>public <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a> init(boolean wrapInArray) 452 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 453<dl><dt><span class="strong">Throws:</span></dt> 454<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 455</li> 456</ul> 457<a name="version()"> 458<!-- --> 459</a> 460<ul class="blockList"> 461<li class="blockList"> 462<h4>version</h4> 463<pre>public <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/Version.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Version</a> version()</pre> 464<div class="block">Method that will return version information stored in and read from jar 465 that contains this class.</div> 466<dl> 467<dt><strong>Specified by:</strong></dt> 468<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/Versioned.html?is-external=true#version()" title="class or interface in com.fasterxml.jackson.core">version</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/Versioned.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Versioned</a></code></dd> 469</dl> 470</li> 471</ul> 472<a name="write(java.lang.Object)"> 473<!-- --> 474</a> 475<ul class="blockList"> 476<li class="blockList"> 477<h4>write</h4> 478<pre>public <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a> write(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value) 479 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 480<div class="block">Method for writing given value into output, as part of sequence 481 to write. If root type was specified for <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a>, 482 value must be of compatible type (same or subtype).</div> 483<dl><dt><span class="strong">Throws:</span></dt> 484<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 485</li> 486</ul> 487<a name="write(java.lang.Object, com.fasterxml.jackson.databind.JavaType)"> 488<!-- --> 489</a> 490<ul class="blockList"> 491<li class="blockList"> 492<h4>write</h4> 493<pre>public <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a> write(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 494 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type) 495 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 496<div class="block">Method for writing given value into output, as part of sequence 497 to write; further, full type (often generic, like <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> 498 is passed in case a new 499 <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind"><code>JsonSerializer</code></a> needs to be fetched to handle type 500 501 If root type was specified for <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a>, 502 value must be of compatible type (same or subtype).</div> 503<dl><dt><span class="strong">Throws:</span></dt> 504<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 505</li> 506</ul> 507<a name="writeAll(java.lang.Object[])"> 508<!-- --> 509</a> 510<ul class="blockList"> 511<li class="blockList"> 512<h4>writeAll</h4> 513<pre>public <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a> writeAll(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] value) 514 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 515<dl><dt><span class="strong">Throws:</span></dt> 516<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 517</li> 518</ul> 519<a name="writeAll(java.util.Collection)"> 520<!-- --> 521</a><a name="writeAll(C)"> 522<!-- --> 523</a> 524<ul class="blockList"> 525<li class="blockList"> 526<h4>writeAll</h4> 527<pre>public <C extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><?>> <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a> writeAll(C container) 528 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 529<dl><dt><span class="strong">Throws:</span></dt> 530<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 531</li> 532</ul> 533<a name="writeAll(java.lang.Iterable)"> 534<!-- --> 535</a> 536<ul class="blockList"> 537<li class="blockList"> 538<h4>writeAll</h4> 539<pre>public <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a> writeAll(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><?> iterable) 540 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 541<dl><dt><span class="strong">Throws:</span></dt> 542<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt> 543 <dd>2.7</dd></dl> 544</li> 545</ul> 546<a name="flush()"> 547<!-- --> 548</a> 549<ul class="blockList"> 550<li class="blockList"> 551<h4>flush</h4> 552<pre>public void flush() 553 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 554<dl> 555<dt><strong>Specified by:</strong></dt> 556<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Flushable.html?is-external=true#flush()" title="class or interface in java.io">flush</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Flushable.html?is-external=true" title="class or interface in java.io">Flushable</a></code></dd> 557<dt><span class="strong">Throws:</span></dt> 558<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 559</li> 560</ul> 561<a name="close()"> 562<!-- --> 563</a> 564<ul class="blockList"> 565<li class="blockList"> 566<h4>close</h4> 567<pre>public void close() 568 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 569<dl> 570<dt><strong>Specified by:</strong></dt> 571<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true#close()" title="class or interface in java.io">close</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></code></dd> 572<dt><strong>Specified by:</strong></dt> 573<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true#close()" title="class or interface in java.lang">close</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></dd> 574<dt><span class="strong">Throws:</span></dt> 575<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 576</li> 577</ul> 578<a name="_writeCloseableValue(java.lang.Object)"> 579<!-- --> 580</a> 581<ul class="blockList"> 582<li class="blockList"> 583<h4>_writeCloseableValue</h4> 584<pre>protected <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a> _writeCloseableValue(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value) 585 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 586<dl><dt><span class="strong">Throws:</span></dt> 587<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 588</li> 589</ul> 590<a name="_writeCloseableValue(java.lang.Object, com.fasterxml.jackson.databind.JavaType)"> 591<!-- --> 592</a> 593<ul class="blockListLast"> 594<li class="blockList"> 595<h4>_writeCloseableValue</h4> 596<pre>protected <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a> _writeCloseableValue(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 597 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type) 598 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 599<dl><dt><span class="strong">Throws:</span></dt> 600<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 601</li> 602</ul> 603</li> 604</ul> 605</li> 606</ul> 607</div> 608</div> 609<!-- ========= END OF CLASS DATA ========= --> 610<!-- ======= START OF BOTTOM NAVBAR ====== --> 611<div class="bottomNav"><a name="navbar_bottom"> 612<!-- --> 613</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 614<!-- --> 615</a> 616<ul class="navList" title="Navigation"> 617<li><a href="../../../../overview-summary.html">Overview</a></li> 618<li><a href="package-summary.html">Package</a></li> 619<li class="navBarCell1Rev">Class</li> 620<li><a href="class-use/SequenceWriter.html">Use</a></li> 621<li><a href="package-tree.html">Tree</a></li> 622<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 623<li><a href="../../../../index-all.html">Index</a></li> 624<li><a href="../../../../help-doc.html">Help</a></li> 625</ul> 626</div> 627<div class="subNav"> 628<ul class="navList"> 629<li><a href="../../../../com/fasterxml/jackson/databind/RuntimeJsonMappingException.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 630<li><a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 631</ul> 632<ul class="navList"> 633<li><a href="../../../../index.html?com/fasterxml/jackson/databind/SequenceWriter.html" target="_top">Frames</a></li> 634<li><a href="SequenceWriter.html" target="_top">No Frames</a></li> 635</ul> 636<ul class="navList" id="allclasses_navbar_bottom"> 637<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 638</ul> 639<div> 640<script type="text/javascript"><!-- 641 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 642 if(window==top) { 643 allClassesLink.style.display = "block"; 644 } 645 else { 646 allClassesLink.style.display = "none"; 647 } 648 //--> 649</script> 650</div> 651<div> 652<ul class="subNavList"> 653<li>Summary: </li> 654<li>Nested | </li> 655<li><a href="#field_summary">Field</a> | </li> 656<li><a href="#constructor_summary">Constr</a> | </li> 657<li><a href="#method_summary">Method</a></li> 658</ul> 659<ul class="subNavList"> 660<li>Detail: </li> 661<li><a href="#field_detail">Field</a> | </li> 662<li><a href="#constructor_detail">Constr</a> | </li> 663<li><a href="#method_detail">Method</a></li> 664</ul> 665</div> 666<a name="skip-navbar_bottom"> 667<!-- --> 668</a></div> 669<!-- ======== END OF BOTTOM NAVBAR ======= --> 670<p class="legalCopy"><small>Copyright © 2008–2016 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 671</body> 672</html> 673