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_10-ea) on Sun Jul 14 20:03:24 PDT 2013 -->
6<title>SegmentedStringWriter (Jackson JSON Processor)</title>
7<meta name="date" content="2013-07-14">
8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
9</head>
10<body>
11<script type="text/javascript"><!--
12    if (location.href.indexOf('is-external=true') == -1) {
13        parent.document.title="SegmentedStringWriter (Jackson JSON Processor)";
14    }
15//-->
16</script>
17<noscript>
18<div>JavaScript is disabled on your browser.</div>
19</noscript>
20<!-- ========= START OF TOP NAVBAR ======= -->
21<div class="topNav"><a name="navbar_top">
22<!--   -->
23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
24<!--   -->
25</a>
26<ul class="navList" title="Navigation">
27<li><a href="../../../../overview-summary.html">Overview</a></li>
28<li><a href="package-summary.html">Package</a></li>
29<li class="navBarCell1Rev">Class</li>
30<li><a href="class-use/SegmentedStringWriter.html">Use</a></li>
31<li><a href="package-tree.html">Tree</a></li>
32<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
33<li><a href="../../../../index-all.html">Index</a></li>
34<li><a href="../../../../help-doc.html">Help</a></li>
35</ul>
36</div>
37<div class="subNav">
38<ul class="navList">
39<li><a href="../../../../org/codehaus/jackson/io/OutputDecorator.html" title="class in org.codehaus.jackson.io"><span class="strong">Prev Class</span></a></li>
40<li><a href="../../../../org/codehaus/jackson/io/SerializedString.html" title="class in org.codehaus.jackson.io"><span class="strong">Next Class</span></a></li>
41</ul>
42<ul class="navList">
43<li><a href="../../../../index.html?org/codehaus/jackson/io/SegmentedStringWriter.html" target="_top">Frames</a></li>
44<li><a href="SegmentedStringWriter.html" target="_top">No Frames</a></li>
45</ul>
46<ul class="navList" id="allclasses_navbar_top">
47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
48</ul>
49<div>
50<script type="text/javascript"><!--
51  allClassesLink = document.getElementById("allclasses_navbar_top");
52  if(window==top) {
53    allClassesLink.style.display = "block";
54  }
55  else {
56    allClassesLink.style.display = "none";
57  }
58  //-->
59</script>
60</div>
61<div>
62<ul class="subNavList">
63<li>Summary:&nbsp;</li>
64<li>Nested&nbsp;|&nbsp;</li>
65<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
66<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
67<li><a href="#method_summary">Method</a></li>
68</ul>
69<ul class="subNavList">
70<li>Detail:&nbsp;</li>
71<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
72<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
73<li><a href="#method_detail">Method</a></li>
74</ul>
75</div>
76<a name="skip-navbar_top">
77<!--   -->
78</a></div>
79<!-- ========= END OF TOP NAVBAR ========= -->
80<!-- ======== START OF CLASS DATA ======== -->
81<div class="header">
82<div class="subTitle">org.codehaus.jackson.io</div>
83<h2 title="Class SegmentedStringWriter" class="title">Class SegmentedStringWriter</h2>
84</div>
85<div class="contentContainer">
86<ul class="inheritance">
87<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>
88<li>
89<ul class="inheritance">
90<li><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">java.io.Writer</a></li>
91<li>
92<ul class="inheritance">
93<li>org.codehaus.jackson.io.SegmentedStringWriter</li>
94</ul>
95</li>
96</ul>
97</li>
98</ul>
99<div class="description">
100<ul class="blockList">
101<li class="blockList">
102<dl>
103<dt>All Implemented Interfaces:</dt>
104<dd><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/Appendable.html?is-external=true" title="class or interface in java.lang">Appendable</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>
105</dl>
106<hr>
107<br>
108<pre>public final class <span class="strong">SegmentedStringWriter</span>
109extends <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></pre>
110<div class="block">Efficient alternative to <a href="http://docs.oracle.com/javase/6/docs/api/java/io/StringWriter.html?is-external=true" title="class or interface in java.io"><code>StringWriter</code></a>, based on using segmented
111 internal buffer. Initial input buffer is also recyclable.
112<p>
113 This class is most useful when serializing JSON content as a String:
114 if so, instance of this class can be given as the writer to
115 <code>JsonGenerator</code>.</div>
116<dl><dt><span class="strong">Since:</span></dt>
117  <dd>1.3</dd></dl>
118</li>
119</ul>
120</div>
121<div class="summary">
122<ul class="blockList">
123<li class="blockList">
124<!-- =========== FIELD SUMMARY =========== -->
125<ul class="blockList">
126<li class="blockList"><a name="field_summary">
127<!--   -->
128</a>
129<h3>Field Summary</h3>
130<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
131<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
132<tr>
133<th class="colFirst" scope="col">Modifier and Type</th>
134<th class="colLast" scope="col">Field and Description</th>
135</tr>
136<tr class="altColor">
137<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/util/TextBuffer.html" title="class in org.codehaus.jackson.util">TextBuffer</a></code></td>
138<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#_buffer">_buffer</a></strong></code>&nbsp;</td>
139</tr>
140</table>
141<ul class="blockList">
142<li class="blockList"><a name="fields_inherited_from_class_java.io.Writer">
143<!--   -->
144</a>
145<h3>Fields inherited from class&nbsp;java.io.<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></h3>
146<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true#lock" title="class or interface in java.io">lock</a></code></li>
147</ul>
148</li>
149</ul>
150<!-- ======== CONSTRUCTOR SUMMARY ======== -->
151<ul class="blockList">
152<li class="blockList"><a name="constructor_summary">
153<!--   -->
154</a>
155<h3>Constructor Summary</h3>
156<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
157<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
158<tr>
159<th class="colOne" scope="col">Constructor and Description</th>
160</tr>
161<tr class="altColor">
162<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#SegmentedStringWriter(org.codehaus.jackson.util.BufferRecycler)">SegmentedStringWriter</a></strong>(<a href="../../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a>&nbsp;br)</code>&nbsp;</td>
163</tr>
164</table>
165</li>
166</ul>
167<!-- ========== METHOD SUMMARY =========== -->
168<ul class="blockList">
169<li class="blockList"><a name="method_summary">
170<!--   -->
171</a>
172<h3>Method Summary</h3>
173<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
174<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
175<tr>
176<th class="colFirst" scope="col">Modifier and Type</th>
177<th class="colLast" scope="col">Method and Description</th>
178</tr>
179<tr class="altColor">
180<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></td>
181<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#append(char)">append</a></strong>(char&nbsp;c)</code>&nbsp;</td>
182</tr>
183<tr class="rowColor">
184<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></td>
185<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#append(java.lang.CharSequence)">append</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;csq)</code>&nbsp;</td>
186</tr>
187<tr class="altColor">
188<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></td>
189<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#append(java.lang.CharSequence, int, int)">append</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;csq,
190      int&nbsp;start,
191      int&nbsp;end)</code>&nbsp;</td>
192</tr>
193<tr class="rowColor">
194<td class="colFirst"><code>void</code></td>
195<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#close()">close</a></strong>()</code>&nbsp;</td>
196</tr>
197<tr class="altColor">
198<td class="colFirst"><code>void</code></td>
199<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#flush()">flush</a></strong>()</code>&nbsp;</td>
200</tr>
201<tr class="rowColor">
202<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
203<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#getAndClear()">getAndClear</a></strong>()</code>
204<div class="block">Main access method that will construct a String that contains
205 all the contents, release all internal buffers we may have,
206 and return result String.</div>
207</td>
208</tr>
209<tr class="altColor">
210<td class="colFirst"><code>void</code></td>
211<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#write(char[])">write</a></strong>(char[]&nbsp;cbuf)</code>&nbsp;</td>
212</tr>
213<tr class="rowColor">
214<td class="colFirst"><code>void</code></td>
215<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#write(char[], int, int)">write</a></strong>(char[]&nbsp;cbuf,
216     int&nbsp;off,
217     int&nbsp;len)</code>&nbsp;</td>
218</tr>
219<tr class="altColor">
220<td class="colFirst"><code>void</code></td>
221<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#write(int)">write</a></strong>(int&nbsp;c)</code>&nbsp;</td>
222</tr>
223<tr class="rowColor">
224<td class="colFirst"><code>void</code></td>
225<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#write(java.lang.String)">write</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</code>&nbsp;</td>
226</tr>
227<tr class="altColor">
228<td class="colFirst"><code>void</code></td>
229<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/io/SegmentedStringWriter.html#write(java.lang.String, int, int)">write</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str,
230     int&nbsp;off,
231     int&nbsp;len)</code>&nbsp;</td>
232</tr>
233</table>
234<ul class="blockList">
235<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
236<!--   -->
237</a>
238<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>
239<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>
240</ul>
241</li>
242</ul>
243</li>
244</ul>
245</div>
246<div class="details">
247<ul class="blockList">
248<li class="blockList">
249<!-- ============ FIELD DETAIL =========== -->
250<ul class="blockList">
251<li class="blockList"><a name="field_detail">
252<!--   -->
253</a>
254<h3>Field Detail</h3>
255<a name="_buffer">
256<!--   -->
257</a>
258<ul class="blockListLast">
259<li class="blockList">
260<h4>_buffer</h4>
261<pre>protected final&nbsp;<a href="../../../../org/codehaus/jackson/util/TextBuffer.html" title="class in org.codehaus.jackson.util">TextBuffer</a> _buffer</pre>
262</li>
263</ul>
264</li>
265</ul>
266<!-- ========= CONSTRUCTOR DETAIL ======== -->
267<ul class="blockList">
268<li class="blockList"><a name="constructor_detail">
269<!--   -->
270</a>
271<h3>Constructor Detail</h3>
272<a name="SegmentedStringWriter(org.codehaus.jackson.util.BufferRecycler)">
273<!--   -->
274</a>
275<ul class="blockListLast">
276<li class="blockList">
277<h4>SegmentedStringWriter</h4>
278<pre>public&nbsp;SegmentedStringWriter(<a href="../../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a>&nbsp;br)</pre>
279</li>
280</ul>
281</li>
282</ul>
283<!-- ============ METHOD DETAIL ========== -->
284<ul class="blockList">
285<li class="blockList"><a name="method_detail">
286<!--   -->
287</a>
288<h3>Method Detail</h3>
289<a name="append(char)">
290<!--   -->
291</a>
292<ul class="blockList">
293<li class="blockList">
294<h4>append</h4>
295<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a>&nbsp;append(char&nbsp;c)</pre>
296<dl>
297<dt><strong>Specified by:</strong></dt>
298<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Appendable.html?is-external=true#append(char)" title="class or interface in java.lang">append</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang">Appendable</a></code></dd>
299<dt><strong>Overrides:</strong></dt>
300<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true#append(char)" title="class or interface in java.io">append</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
301</dl>
302</li>
303</ul>
304<a name="append(java.lang.CharSequence)">
305<!--   -->
306</a>
307<ul class="blockList">
308<li class="blockList">
309<h4>append</h4>
310<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a>&nbsp;append(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;csq)</pre>
311<dl>
312<dt><strong>Specified by:</strong></dt>
313<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Appendable.html?is-external=true#append(java.lang.CharSequence)" title="class or interface in java.lang">append</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang">Appendable</a></code></dd>
314<dt><strong>Overrides:</strong></dt>
315<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true#append(java.lang.CharSequence)" title="class or interface in java.io">append</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
316</dl>
317</li>
318</ul>
319<a name="append(java.lang.CharSequence, int, int)">
320<!--   -->
321</a>
322<ul class="blockList">
323<li class="blockList">
324<h4>append</h4>
325<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a>&nbsp;append(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</a>&nbsp;csq,
326            int&nbsp;start,
327            int&nbsp;end)</pre>
328<dl>
329<dt><strong>Specified by:</strong></dt>
330<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Appendable.html?is-external=true#append(java.lang.CharSequence, int, int)" title="class or interface in java.lang">append</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang">Appendable</a></code></dd>
331<dt><strong>Overrides:</strong></dt>
332<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true#append(java.lang.CharSequence, int, int)" title="class or interface in java.io">append</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
333</dl>
334</li>
335</ul>
336<a name="close()">
337<!--   -->
338</a>
339<ul class="blockList">
340<li class="blockList">
341<h4>close</h4>
342<pre>public&nbsp;void&nbsp;close()</pre>
343<dl>
344<dt><strong>Specified by:</strong></dt>
345<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>
346<dt><strong>Specified by:</strong></dt>
347<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>
348<dt><strong>Specified by:</strong></dt>
349<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true#close()" title="class or interface in java.io">close</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
350</dl>
351</li>
352</ul>
353<a name="flush()">
354<!--   -->
355</a>
356<ul class="blockList">
357<li class="blockList">
358<h4>flush</h4>
359<pre>public&nbsp;void&nbsp;flush()</pre>
360<dl>
361<dt><strong>Specified by:</strong></dt>
362<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>
363<dt><strong>Specified by:</strong></dt>
364<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true#flush()" title="class or interface in java.io">flush</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
365</dl>
366</li>
367</ul>
368<a name="write(char[])">
369<!--   -->
370</a>
371<ul class="blockList">
372<li class="blockList">
373<h4>write</h4>
374<pre>public&nbsp;void&nbsp;write(char[]&nbsp;cbuf)</pre>
375<dl>
376<dt><strong>Overrides:</strong></dt>
377<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true#write(char[])" title="class or interface in java.io">write</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
378</dl>
379</li>
380</ul>
381<a name="write(char[], int, int)">
382<!--   -->
383</a>
384<ul class="blockList">
385<li class="blockList">
386<h4>write</h4>
387<pre>public&nbsp;void&nbsp;write(char[]&nbsp;cbuf,
388         int&nbsp;off,
389         int&nbsp;len)</pre>
390<dl>
391<dt><strong>Specified by:</strong></dt>
392<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true#write(char[], int, int)" title="class or interface in java.io">write</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
393</dl>
394</li>
395</ul>
396<a name="write(int)">
397<!--   -->
398</a>
399<ul class="blockList">
400<li class="blockList">
401<h4>write</h4>
402<pre>public&nbsp;void&nbsp;write(int&nbsp;c)</pre>
403<dl>
404<dt><strong>Overrides:</strong></dt>
405<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true#write(int)" title="class or interface in java.io">write</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
406</dl>
407</li>
408</ul>
409<a name="write(java.lang.String)">
410<!--   -->
411</a>
412<ul class="blockList">
413<li class="blockList">
414<h4>write</h4>
415<pre>public&nbsp;void&nbsp;write(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str)</pre>
416<dl>
417<dt><strong>Overrides:</strong></dt>
418<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true#write(java.lang.String)" title="class or interface in java.io">write</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
419</dl>
420</li>
421</ul>
422<a name="write(java.lang.String, int, int)">
423<!--   -->
424</a>
425<ul class="blockList">
426<li class="blockList">
427<h4>write</h4>
428<pre>public&nbsp;void&nbsp;write(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str,
429         int&nbsp;off,
430         int&nbsp;len)</pre>
431<dl>
432<dt><strong>Overrides:</strong></dt>
433<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true#write(java.lang.String, int, int)" title="class or interface in java.io">write</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</a></code></dd>
434</dl>
435</li>
436</ul>
437<a name="getAndClear()">
438<!--   -->
439</a>
440<ul class="blockListLast">
441<li class="blockList">
442<h4>getAndClear</h4>
443<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getAndClear()</pre>
444<div class="block">Main access method that will construct a String that contains
445 all the contents, release all internal buffers we may have,
446 and return result String.
447 Note that the method is not idempotent -- if called second time,
448 will just return an empty String.</div>
449</li>
450</ul>
451</li>
452</ul>
453</li>
454</ul>
455</div>
456</div>
457<!-- ========= END OF CLASS DATA ========= -->
458<!-- ======= START OF BOTTOM NAVBAR ====== -->
459<div class="bottomNav"><a name="navbar_bottom">
460<!--   -->
461</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
462<!--   -->
463</a>
464<ul class="navList" title="Navigation">
465<li><a href="../../../../overview-summary.html">Overview</a></li>
466<li><a href="package-summary.html">Package</a></li>
467<li class="navBarCell1Rev">Class</li>
468<li><a href="class-use/SegmentedStringWriter.html">Use</a></li>
469<li><a href="package-tree.html">Tree</a></li>
470<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
471<li><a href="../../../../index-all.html">Index</a></li>
472<li><a href="../../../../help-doc.html">Help</a></li>
473</ul>
474</div>
475<div class="subNav">
476<ul class="navList">
477<li><a href="../../../../org/codehaus/jackson/io/OutputDecorator.html" title="class in org.codehaus.jackson.io"><span class="strong">Prev Class</span></a></li>
478<li><a href="../../../../org/codehaus/jackson/io/SerializedString.html" title="class in org.codehaus.jackson.io"><span class="strong">Next Class</span></a></li>
479</ul>
480<ul class="navList">
481<li><a href="../../../../index.html?org/codehaus/jackson/io/SegmentedStringWriter.html" target="_top">Frames</a></li>
482<li><a href="SegmentedStringWriter.html" target="_top">No Frames</a></li>
483</ul>
484<ul class="navList" id="allclasses_navbar_bottom">
485<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
486</ul>
487<div>
488<script type="text/javascript"><!--
489  allClassesLink = document.getElementById("allclasses_navbar_bottom");
490  if(window==top) {
491    allClassesLink.style.display = "block";
492  }
493  else {
494    allClassesLink.style.display = "none";
495  }
496  //-->
497</script>
498</div>
499<div>
500<ul class="subNavList">
501<li>Summary:&nbsp;</li>
502<li>Nested&nbsp;|&nbsp;</li>
503<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
504<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
505<li><a href="#method_summary">Method</a></li>
506</ul>
507<ul class="subNavList">
508<li>Detail:&nbsp;</li>
509<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
510<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
511<li><a href="#method_detail">Method</a></li>
512</ul>
513</div>
514<a name="skip-navbar_bottom">
515<!--   -->
516</a></div>
517<!-- ======== END OF BOTTOM NAVBAR ======= -->
518</body>
519</html>
520