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