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