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_162) on Tue Jan 23 20:22:12 PST 2018 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>SequenceWriter (jackson-databind 2.9.0 API)</title> 8<meta name="date" content="2018-01-23"> 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.9.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,"i10":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/7/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><a href="http://fasterxml.github.com/jackson-core/javadoc/2.9/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> 114</dl> 115<hr> 116<br> 117<pre>public class <span class="typeNameLabel">SequenceWriter</span> 118extends <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> 119implements <a href="http://fasterxml.github.com/jackson-core/javadoc/2.9/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> 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 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a></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/7/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 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> 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/7/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/7/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><a href="http://fasterxml.github.com/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/Version.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Version</a></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/7/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/7/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/7/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/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> 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.Iterable-">writeAll</a></span>(<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> 297</tr> 298<tr id="i10" class="altColor"> 299<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a></code></td> 300<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/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] value)</code> </td> 301</tr> 302</table> 303<ul class="blockList"> 304<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 305<!-- --> 306</a> 307<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> 308<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-int-" title="class or interface in java.lang">wait</a></code></li> 309</ul> 310</li> 311</ul> 312</li> 313</ul> 314</div> 315<div class="details"> 316<ul class="blockList"> 317<li class="blockList"> 318<!-- ============ FIELD DETAIL =========== --> 319<ul class="blockList"> 320<li class="blockList"><a name="field.detail"> 321<!-- --> 322</a> 323<h3>Field Detail</h3> 324<a name="Z:Z_provider"> 325<!-- --> 326</a> 327<ul class="blockList"> 328<li class="blockList"> 329<h4>_provider</h4> 330<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> _provider</pre> 331</li> 332</ul> 333<a name="Z:Z_config"> 334<!-- --> 335</a> 336<ul class="blockList"> 337<li class="blockList"> 338<h4>_config</h4> 339<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> _config</pre> 340</li> 341</ul> 342<a name="Z:Z_generator"> 343<!-- --> 344</a> 345<ul class="blockList"> 346<li class="blockList"> 347<h4>_generator</h4> 348<pre>protected final <a href="http://fasterxml.github.com/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> _generator</pre> 349</li> 350</ul> 351<a name="Z:Z_rootSerializer"> 352<!-- --> 353</a> 354<ul class="blockList"> 355<li class="blockList"> 356<h4>_rootSerializer</h4> 357<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> 358</li> 359</ul> 360<a name="Z:Z_typeSerializer"> 361<!-- --> 362</a> 363<ul class="blockList"> 364<li class="blockList"> 365<h4>_typeSerializer</h4> 366<pre>protected final <a href="../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> _typeSerializer</pre> 367</li> 368</ul> 369<a name="Z:Z_closeGenerator"> 370<!-- --> 371</a> 372<ul class="blockList"> 373<li class="blockList"> 374<h4>_closeGenerator</h4> 375<pre>protected final boolean _closeGenerator</pre> 376</li> 377</ul> 378<a name="Z:Z_cfgFlush"> 379<!-- --> 380</a> 381<ul class="blockList"> 382<li class="blockList"> 383<h4>_cfgFlush</h4> 384<pre>protected final boolean _cfgFlush</pre> 385</li> 386</ul> 387<a name="Z:Z_cfgCloseCloseable"> 388<!-- --> 389</a> 390<ul class="blockList"> 391<li class="blockList"> 392<h4>_cfgCloseCloseable</h4> 393<pre>protected final boolean _cfgCloseCloseable</pre> 394</li> 395</ul> 396<a name="Z:Z_dynamicSerializers"> 397<!-- --> 398</a> 399<ul class="blockList"> 400<li class="blockList"> 401<h4>_dynamicSerializers</h4> 402<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> 403<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 404 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 405 use simple scheme for keeping track of serializers needed. 406 Assumption is that</div> 407</li> 408</ul> 409<a name="Z:Z_openArray"> 410<!-- --> 411</a> 412<ul class="blockList"> 413<li class="blockList"> 414<h4>_openArray</h4> 415<pre>protected boolean _openArray</pre> 416<div class="block">State flag for keeping track of need to write matching END_ARRAY, 417 if a START_ARRAY was written during initialization</div> 418</li> 419</ul> 420<a name="Z:Z_closed"> 421<!-- --> 422</a> 423<ul class="blockListLast"> 424<li class="blockList"> 425<h4>_closed</h4> 426<pre>protected boolean _closed</pre> 427</li> 428</ul> 429</li> 430</ul> 431<!-- ========= CONSTRUCTOR DETAIL ======== --> 432<ul class="blockList"> 433<li class="blockList"><a name="constructor.detail"> 434<!-- --> 435</a> 436<h3>Constructor Detail</h3> 437<a name="SequenceWriter-com.fasterxml.jackson.databind.ser.DefaultSerializerProvider-com.fasterxml.jackson.core.JsonGenerator-boolean-com.fasterxml.jackson.databind.ObjectWriter.Prefetch-"> 438<!-- --> 439</a> 440<ul class="blockListLast"> 441<li class="blockList"> 442<h4>SequenceWriter</h4> 443<pre>public SequenceWriter(<a href="../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> prov, 444 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen, 445 boolean closeGenerator, 446 <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a> prefetch) 447 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> 448<dl> 449<dt><span class="throwsLabel">Throws:</span></dt> 450<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> 451</dl> 452</li> 453</ul> 454</li> 455</ul> 456<!-- ============ METHOD DETAIL ========== --> 457<ul class="blockList"> 458<li class="blockList"><a name="method.detail"> 459<!-- --> 460</a> 461<h3>Method Detail</h3> 462<a name="init-boolean-"> 463<!-- --> 464</a> 465<ul class="blockList"> 466<li class="blockList"> 467<h4>init</h4> 468<pre>public <a href="../../../../com/fasterxml/jackson/databind/SequenceWriter.html" title="class in com.fasterxml.jackson.databind">SequenceWriter</a> init(boolean wrapInArray) 469 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> 470<dl> 471<dt><span class="throwsLabel">Throws:</span></dt> 472<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> 473</dl> 474</li> 475</ul> 476<a name="version--"> 477<!-- --> 478</a> 479<ul class="blockList"> 480<li class="blockList"> 481<h4>version</h4> 482<pre>public <a href="http://fasterxml.github.com/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/Version.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Version</a> version()</pre> 483<div class="block">Method that will return version information stored in and read from jar 484 that contains this class.</div> 485<dl> 486<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 487<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.9/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.9/com/fasterxml/jackson/core/Versioned.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Versioned</a></code></dd> 488</dl> 489</li> 490</ul> 491<a name="write-java.lang.Object-"> 492<!-- --> 493</a> 494<ul class="blockList"> 495<li class="blockList"> 496<h4>write</h4> 497<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) 498 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> 499<div class="block">Method for writing given value into output, as part of sequence 500 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>, 501 value must be of compatible type (same or subtype).</div> 502<dl> 503<dt><span class="throwsLabel">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> 505</dl> 506</li> 507</ul> 508<a name="write-java.lang.Object-com.fasterxml.jackson.databind.JavaType-"> 509<!-- --> 510</a> 511<ul class="blockList"> 512<li class="blockList"> 513<h4>write</h4> 514<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, 515 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type) 516 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> 517<div class="block">Method for writing given value into output, as part of sequence 518 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> 519 is passed in case a new 520 <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 521 522 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>, 523 value must be of compatible type (same or subtype).</div> 524<dl> 525<dt><span class="throwsLabel">Throws:</span></dt> 526<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> 527</dl> 528</li> 529</ul> 530<a name="writeAll-java.lang.Object:A-"> 531<!-- --> 532</a> 533<ul class="blockList"> 534<li class="blockList"> 535<h4>writeAll</h4> 536<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) 537 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> 538<dl> 539<dt><span class="throwsLabel">Throws:</span></dt> 540<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> 541</dl> 542</li> 543</ul> 544<a name="writeAll-java.util.Collection-"> 545<!-- --> 546</a><a name="writeAll-C-"> 547<!-- --> 548</a> 549<ul class="blockList"> 550<li class="blockList"> 551<h4>writeAll</h4> 552<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) 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><span class="throwsLabel">Throws:</span></dt> 556<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> 557</dl> 558</li> 559</ul> 560<a name="writeAll-java.lang.Iterable-"> 561<!-- --> 562</a> 563<ul class="blockList"> 564<li class="blockList"> 565<h4>writeAll</h4> 566<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) 567 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> 568<dl> 569<dt><span class="throwsLabel">Throws:</span></dt> 570<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> 571<dt><span class="simpleTagLabel">Since:</span></dt> 572<dd>2.7</dd> 573</dl> 574</li> 575</ul> 576<a name="flush--"> 577<!-- --> 578</a> 579<ul class="blockList"> 580<li class="blockList"> 581<h4>flush</h4> 582<pre>public void flush() 583 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> 584<dl> 585<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 586<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> 587<dt><span class="throwsLabel">Throws:</span></dt> 588<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> 589</dl> 590</li> 591</ul> 592<a name="close--"> 593<!-- --> 594</a> 595<ul class="blockList"> 596<li class="blockList"> 597<h4>close</h4> 598<pre>public void close() 599 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> 600<dl> 601<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 602<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> 603<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 604<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> 605<dt><span class="throwsLabel">Throws:</span></dt> 606<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> 607</dl> 608</li> 609</ul> 610<a name="Z:Z_writeCloseableValue-java.lang.Object-"> 611<!-- --> 612</a> 613<ul class="blockList"> 614<li class="blockList"> 615<h4>_writeCloseableValue</h4> 616<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) 617 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> 618<dl> 619<dt><span class="throwsLabel">Throws:</span></dt> 620<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> 621</dl> 622</li> 623</ul> 624<a name="Z:Z_writeCloseableValue-java.lang.Object-com.fasterxml.jackson.databind.JavaType-"> 625<!-- --> 626</a> 627<ul class="blockListLast"> 628<li class="blockList"> 629<h4>_writeCloseableValue</h4> 630<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, 631 <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type) 632 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> 633<dl> 634<dt><span class="throwsLabel">Throws:</span></dt> 635<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> 636</dl> 637</li> 638</ul> 639</li> 640</ul> 641</li> 642</ul> 643</div> 644</div> 645<!-- ========= END OF CLASS DATA ========= --> 646<!-- ======= START OF BOTTOM NAVBAR ====== --> 647<div class="bottomNav"><a name="navbar.bottom"> 648<!-- --> 649</a> 650<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 651<a name="navbar.bottom.firstrow"> 652<!-- --> 653</a> 654<ul class="navList" title="Navigation"> 655<li><a href="../../../../overview-summary.html">Overview</a></li> 656<li><a href="package-summary.html">Package</a></li> 657<li class="navBarCell1Rev">Class</li> 658<li><a href="class-use/SequenceWriter.html">Use</a></li> 659<li><a href="package-tree.html">Tree</a></li> 660<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 661<li><a href="../../../../index-all.html">Index</a></li> 662<li><a href="../../../../help-doc.html">Help</a></li> 663</ul> 664</div> 665<div class="subNav"> 666<ul class="navList"> 667<li><a href="../../../../com/fasterxml/jackson/databind/RuntimeJsonMappingException.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Prev Class</span></a></li> 668<li><a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Next Class</span></a></li> 669</ul> 670<ul class="navList"> 671<li><a href="../../../../index.html?com/fasterxml/jackson/databind/SequenceWriter.html" target="_top">Frames</a></li> 672<li><a href="SequenceWriter.html" target="_top">No Frames</a></li> 673</ul> 674<ul class="navList" id="allclasses_navbar_bottom"> 675<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 676</ul> 677<div> 678<script type="text/javascript"><!-- 679 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 680 if(window==top) { 681 allClassesLink.style.display = "block"; 682 } 683 else { 684 allClassesLink.style.display = "none"; 685 } 686 //--> 687</script> 688</div> 689<div> 690<ul class="subNavList"> 691<li>Summary: </li> 692<li>Nested | </li> 693<li><a href="#field.summary">Field</a> | </li> 694<li><a href="#constructor.summary">Constr</a> | </li> 695<li><a href="#method.summary">Method</a></li> 696</ul> 697<ul class="subNavList"> 698<li>Detail: </li> 699<li><a href="#field.detail">Field</a> | </li> 700<li><a href="#constructor.detail">Constr</a> | </li> 701<li><a href="#method.detail">Method</a></li> 702</ul> 703</div> 704<a name="skip.navbar.bottom"> 705<!-- --> 706</a></div> 707<!-- ======== END OF BOTTOM NAVBAR ======= --> 708<p class="legalCopy"><small>Copyright © 2008–2018 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 709</body> 710</html> 711