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