• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:25 PDT 2013 -->
6<title>TextBuffer (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="TextBuffer (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/TextBuffer.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/util/MinimalPrettyPrinter.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li>
40<li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html" title="class in org.codehaus.jackson.util"><span class="strong">Next Class</span></a></li>
41</ul>
42<ul class="navList">
43<li><a href="../../../../index.html?org/codehaus/jackson/util/TextBuffer.html" target="_top">Frames</a></li>
44<li><a href="TextBuffer.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>Field&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>Field&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.util</div>
83<h2 title="Class TextBuffer" class="title">Class TextBuffer</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>org.codehaus.jackson.util.TextBuffer</li>
91</ul>
92</li>
93</ul>
94<div class="description">
95<ul class="blockList">
96<li class="blockList">
97<hr>
98<br>
99<pre>public final class <span class="strong">TextBuffer</span>
100extends <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></pre>
101<div class="block">TextBuffer is a class similar to <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuffer.html?is-external=true" title="class or interface in java.lang"><code>StringBuffer</code></a>, with
102 following differences:
103<ul>
104  <li>TextBuffer uses segments character arrays, to avoid having
105     to do additional array copies when array is not big enough.
106     This means that only reallocating that is necessary is done only once:
107     if and when caller
108     wants to access contents in a linear array (char[], String).
109    </li>
110  <li>TextBuffer can also be initialized in "shared mode", in which
111     it will just act as a wrapper to a single char array managed
112     by another object (like parser that owns it)
113    </li>
114  <li>TextBuffer is not synchronized.
115    </li>
116 </ul></div>
117</li>
118</ul>
119</div>
120<div class="summary">
121<ul class="blockList">
122<li class="blockList">
123<!-- ======== CONSTRUCTOR SUMMARY ======== -->
124<ul class="blockList">
125<li class="blockList"><a name="constructor_summary">
126<!--   -->
127</a>
128<h3>Constructor Summary</h3>
129<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
130<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
131<tr>
132<th class="colOne" scope="col">Constructor and Description</th>
133</tr>
134<tr class="altColor">
135<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#TextBuffer(org.codehaus.jackson.util.BufferRecycler)">TextBuffer</a></strong>(<a href="../../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a>&nbsp;allocator)</code>&nbsp;</td>
136</tr>
137</table>
138</li>
139</ul>
140<!-- ========== METHOD SUMMARY =========== -->
141<ul class="blockList">
142<li class="blockList"><a name="method_summary">
143<!--   -->
144</a>
145<h3>Method Summary</h3>
146<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
147<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
148<tr>
149<th class="colFirst" scope="col">Modifier and Type</th>
150<th class="colLast" scope="col">Method and Description</th>
151</tr>
152<tr class="altColor">
153<td class="colFirst"><code>void</code></td>
154<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#append(char)">append</a></strong>(char&nbsp;c)</code>&nbsp;</td>
155</tr>
156<tr class="rowColor">
157<td class="colFirst"><code>void</code></td>
158<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#append(char[], int, int)">append</a></strong>(char[]&nbsp;c,
159      int&nbsp;start,
160      int&nbsp;len)</code>&nbsp;</td>
161</tr>
162<tr class="altColor">
163<td class="colFirst"><code>void</code></td>
164<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#append(java.lang.String, int, int)">append</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,
165      int&nbsp;offset,
166      int&nbsp;len)</code>&nbsp;</td>
167</tr>
168<tr class="rowColor">
169<td class="colFirst"><code>char[]</code></td>
170<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#contentsAsArray()">contentsAsArray</a></strong>()</code>&nbsp;</td>
171</tr>
172<tr class="altColor">
173<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a></code></td>
174<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#contentsAsDecimal()">contentsAsDecimal</a></strong>()</code>
175<div class="block">Convenience method for converting contents of the buffer
176 into a <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>.</div>
177</td>
178</tr>
179<tr class="rowColor">
180<td class="colFirst"><code>double</code></td>
181<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#contentsAsDouble()">contentsAsDouble</a></strong>()</code>
182<div class="block">Convenience method for converting contents of the buffer
183 into a Double value.</div>
184</td>
185</tr>
186<tr class="altColor">
187<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>
188<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#contentsAsString()">contentsAsString</a></strong>()</code>&nbsp;</td>
189</tr>
190<tr class="rowColor">
191<td class="colFirst"><code>char[]</code></td>
192<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#emptyAndGetCurrentSegment()">emptyAndGetCurrentSegment</a></strong>()</code>&nbsp;</td>
193</tr>
194<tr class="altColor">
195<td class="colFirst"><code>void</code></td>
196<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#ensureNotShared()">ensureNotShared</a></strong>()</code>
197<div class="block">Method called to make sure that buffer is not using shared input
198 buffer; if it is, it will copy such contents to private buffer.</div>
199</td>
200</tr>
201<tr class="rowColor">
202<td class="colFirst"><code>char[]</code></td>
203<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#expandCurrentSegment()">expandCurrentSegment</a></strong>()</code>
204<div class="block">Method called to expand size of the current segment, to
205 accomodate for more contiguous content.</div>
206</td>
207</tr>
208<tr class="altColor">
209<td class="colFirst"><code>char[]</code></td>
210<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#finishCurrentSegment()">finishCurrentSegment</a></strong>()</code>&nbsp;</td>
211</tr>
212<tr class="rowColor">
213<td class="colFirst"><code>char[]</code></td>
214<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#getCurrentSegment()">getCurrentSegment</a></strong>()</code>&nbsp;</td>
215</tr>
216<tr class="altColor">
217<td class="colFirst"><code>int</code></td>
218<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#getCurrentSegmentSize()">getCurrentSegmentSize</a></strong>()</code>&nbsp;</td>
219</tr>
220<tr class="rowColor">
221<td class="colFirst"><code>char[]</code></td>
222<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#getTextBuffer()">getTextBuffer</a></strong>()</code>&nbsp;</td>
223</tr>
224<tr class="altColor">
225<td class="colFirst"><code>int</code></td>
226<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#getTextOffset()">getTextOffset</a></strong>()</code>&nbsp;</td>
227</tr>
228<tr class="rowColor">
229<td class="colFirst"><code>boolean</code></td>
230<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#hasTextAsCharacters()">hasTextAsCharacters</a></strong>()</code>
231<div class="block">Method that can be used to check whether textual contents can
232 be efficiently accessed using <a href="../../../../org/codehaus/jackson/util/TextBuffer.html#getTextBuffer()"><code>getTextBuffer()</code></a>.</div>
233</td>
234</tr>
235<tr class="altColor">
236<td class="colFirst"><code>void</code></td>
237<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#releaseBuffers()">releaseBuffers</a></strong>()</code>
238<div class="block">Method called to indicate that the underlying buffers should now
239 be recycled if they haven't yet been recycled.</div>
240</td>
241</tr>
242<tr class="rowColor">
243<td class="colFirst"><code>void</code></td>
244<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#resetWithCopy(char[], int, int)">resetWithCopy</a></strong>(char[]&nbsp;buf,
245             int&nbsp;start,
246             int&nbsp;len)</code>&nbsp;</td>
247</tr>
248<tr class="altColor">
249<td class="colFirst"><code>void</code></td>
250<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#resetWithEmpty()">resetWithEmpty</a></strong>()</code>
251<div class="block">Method called to clear out any content text buffer may have, and
252 initializes buffer to use non-shared data.</div>
253</td>
254</tr>
255<tr class="rowColor">
256<td class="colFirst"><code>void</code></td>
257<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#resetWithShared(char[], int, int)">resetWithShared</a></strong>(char[]&nbsp;buf,
258               int&nbsp;start,
259               int&nbsp;len)</code>
260<div class="block">Method called to initialize the buffer with a shared copy of data;
261 this means that buffer will just have pointers to actual data.</div>
262</td>
263</tr>
264<tr class="altColor">
265<td class="colFirst"><code>void</code></td>
266<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#resetWithString(java.lang.String)">resetWithString</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;value)</code>&nbsp;</td>
267</tr>
268<tr class="rowColor">
269<td class="colFirst"><code>void</code></td>
270<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#setCurrentLength(int)">setCurrentLength</a></strong>(int&nbsp;len)</code>&nbsp;</td>
271</tr>
272<tr class="altColor">
273<td class="colFirst"><code>int</code></td>
274<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#size()">size</a></strong>()</code>&nbsp;</td>
275</tr>
276<tr class="rowColor">
277<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>
278<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/TextBuffer.html#toString()">toString</a></strong>()</code>
279<div class="block">Note: calling this method may not be as efficient as calling
280 <a href="../../../../org/codehaus/jackson/util/TextBuffer.html#contentsAsString()"><code>contentsAsString()</code></a>, since it's not guaranteed that resulting
281 String is cached.</div>
282</td>
283</tr>
284</table>
285<ul class="blockList">
286<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
287<!--   -->
288</a>
289<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>
290<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#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>
291</ul>
292</li>
293</ul>
294</li>
295</ul>
296</div>
297<div class="details">
298<ul class="blockList">
299<li class="blockList">
300<!-- ========= CONSTRUCTOR DETAIL ======== -->
301<ul class="blockList">
302<li class="blockList"><a name="constructor_detail">
303<!--   -->
304</a>
305<h3>Constructor Detail</h3>
306<a name="TextBuffer(org.codehaus.jackson.util.BufferRecycler)">
307<!--   -->
308</a>
309<ul class="blockListLast">
310<li class="blockList">
311<h4>TextBuffer</h4>
312<pre>public&nbsp;TextBuffer(<a href="../../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a>&nbsp;allocator)</pre>
313</li>
314</ul>
315</li>
316</ul>
317<!-- ============ METHOD DETAIL ========== -->
318<ul class="blockList">
319<li class="blockList"><a name="method_detail">
320<!--   -->
321</a>
322<h3>Method Detail</h3>
323<a name="releaseBuffers()">
324<!--   -->
325</a>
326<ul class="blockList">
327<li class="blockList">
328<h4>releaseBuffers</h4>
329<pre>public&nbsp;void&nbsp;releaseBuffers()</pre>
330<div class="block">Method called to indicate that the underlying buffers should now
331 be recycled if they haven't yet been recycled. Although caller
332 can still use this text buffer, it is not advisable to call this
333 method if that is likely, since next time a buffer is needed,
334 buffers need to reallocated.
335 Note: calling this method automatically also clears contents
336 of the buffer.</div>
337</li>
338</ul>
339<a name="resetWithEmpty()">
340<!--   -->
341</a>
342<ul class="blockList">
343<li class="blockList">
344<h4>resetWithEmpty</h4>
345<pre>public&nbsp;void&nbsp;resetWithEmpty()</pre>
346<div class="block">Method called to clear out any content text buffer may have, and
347 initializes buffer to use non-shared data.</div>
348</li>
349</ul>
350<a name="resetWithShared(char[], int, int)">
351<!--   -->
352</a>
353<ul class="blockList">
354<li class="blockList">
355<h4>resetWithShared</h4>
356<pre>public&nbsp;void&nbsp;resetWithShared(char[]&nbsp;buf,
357                   int&nbsp;start,
358                   int&nbsp;len)</pre>
359<div class="block">Method called to initialize the buffer with a shared copy of data;
360 this means that buffer will just have pointers to actual data. It
361 also means that if anything is to be appended to the buffer, it
362 will first have to unshare it (make a local copy).</div>
363</li>
364</ul>
365<a name="resetWithCopy(char[], int, int)">
366<!--   -->
367</a>
368<ul class="blockList">
369<li class="blockList">
370<h4>resetWithCopy</h4>
371<pre>public&nbsp;void&nbsp;resetWithCopy(char[]&nbsp;buf,
372                 int&nbsp;start,
373                 int&nbsp;len)</pre>
374</li>
375</ul>
376<a name="resetWithString(java.lang.String)">
377<!--   -->
378</a>
379<ul class="blockList">
380<li class="blockList">
381<h4>resetWithString</h4>
382<pre>public&nbsp;void&nbsp;resetWithString(<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;value)</pre>
383</li>
384</ul>
385<a name="size()">
386<!--   -->
387</a>
388<ul class="blockList">
389<li class="blockList">
390<h4>size</h4>
391<pre>public&nbsp;int&nbsp;size()</pre>
392<dl><dt><span class="strong">Returns:</span></dt><dd>Number of characters currently stored by this collector</dd></dl>
393</li>
394</ul>
395<a name="getTextOffset()">
396<!--   -->
397</a>
398<ul class="blockList">
399<li class="blockList">
400<h4>getTextOffset</h4>
401<pre>public&nbsp;int&nbsp;getTextOffset()</pre>
402</li>
403</ul>
404<a name="hasTextAsCharacters()">
405<!--   -->
406</a>
407<ul class="blockList">
408<li class="blockList">
409<h4>hasTextAsCharacters</h4>
410<pre>public&nbsp;boolean&nbsp;hasTextAsCharacters()</pre>
411<div class="block">Method that can be used to check whether textual contents can
412 be efficiently accessed using <a href="../../../../org/codehaus/jackson/util/TextBuffer.html#getTextBuffer()"><code>getTextBuffer()</code></a>.</div>
413<dl><dt><span class="strong">Since:</span></dt>
414  <dd>1.9</dd></dl>
415</li>
416</ul>
417<a name="getTextBuffer()">
418<!--   -->
419</a>
420<ul class="blockList">
421<li class="blockList">
422<h4>getTextBuffer</h4>
423<pre>public&nbsp;char[]&nbsp;getTextBuffer()</pre>
424</li>
425</ul>
426<a name="contentsAsString()">
427<!--   -->
428</a>
429<ul class="blockList">
430<li class="blockList">
431<h4>contentsAsString</h4>
432<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;contentsAsString()</pre>
433</li>
434</ul>
435<a name="contentsAsArray()">
436<!--   -->
437</a>
438<ul class="blockList">
439<li class="blockList">
440<h4>contentsAsArray</h4>
441<pre>public&nbsp;char[]&nbsp;contentsAsArray()</pre>
442</li>
443</ul>
444<a name="contentsAsDecimal()">
445<!--   -->
446</a>
447<ul class="blockList">
448<li class="blockList">
449<h4>contentsAsDecimal</h4>
450<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;contentsAsDecimal()
451                             throws <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NumberFormatException.html?is-external=true" title="class or interface in java.lang">NumberFormatException</a></pre>
452<div class="block">Convenience method for converting contents of the buffer
453 into a <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>.</div>
454<dl><dt><span class="strong">Throws:</span></dt>
455<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NumberFormatException.html?is-external=true" title="class or interface in java.lang">NumberFormatException</a></code></dd></dl>
456</li>
457</ul>
458<a name="contentsAsDouble()">
459<!--   -->
460</a>
461<ul class="blockList">
462<li class="blockList">
463<h4>contentsAsDouble</h4>
464<pre>public&nbsp;double&nbsp;contentsAsDouble()
465                        throws <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NumberFormatException.html?is-external=true" title="class or interface in java.lang">NumberFormatException</a></pre>
466<div class="block">Convenience method for converting contents of the buffer
467 into a Double value.</div>
468<dl><dt><span class="strong">Throws:</span></dt>
469<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NumberFormatException.html?is-external=true" title="class or interface in java.lang">NumberFormatException</a></code></dd></dl>
470</li>
471</ul>
472<a name="ensureNotShared()">
473<!--   -->
474</a>
475<ul class="blockList">
476<li class="blockList">
477<h4>ensureNotShared</h4>
478<pre>public&nbsp;void&nbsp;ensureNotShared()</pre>
479<div class="block">Method called to make sure that buffer is not using shared input
480 buffer; if it is, it will copy such contents to private buffer.</div>
481</li>
482</ul>
483<a name="append(char)">
484<!--   -->
485</a>
486<ul class="blockList">
487<li class="blockList">
488<h4>append</h4>
489<pre>public&nbsp;void&nbsp;append(char&nbsp;c)</pre>
490</li>
491</ul>
492<a name="append(char[], int, int)">
493<!--   -->
494</a>
495<ul class="blockList">
496<li class="blockList">
497<h4>append</h4>
498<pre>public&nbsp;void&nbsp;append(char[]&nbsp;c,
499          int&nbsp;start,
500          int&nbsp;len)</pre>
501</li>
502</ul>
503<a name="append(java.lang.String, int, int)">
504<!--   -->
505</a>
506<ul class="blockList">
507<li class="blockList">
508<h4>append</h4>
509<pre>public&nbsp;void&nbsp;append(<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,
510          int&nbsp;offset,
511          int&nbsp;len)</pre>
512</li>
513</ul>
514<a name="getCurrentSegment()">
515<!--   -->
516</a>
517<ul class="blockList">
518<li class="blockList">
519<h4>getCurrentSegment</h4>
520<pre>public&nbsp;char[]&nbsp;getCurrentSegment()</pre>
521</li>
522</ul>
523<a name="emptyAndGetCurrentSegment()">
524<!--   -->
525</a>
526<ul class="blockList">
527<li class="blockList">
528<h4>emptyAndGetCurrentSegment</h4>
529<pre>public final&nbsp;char[]&nbsp;emptyAndGetCurrentSegment()</pre>
530</li>
531</ul>
532<a name="getCurrentSegmentSize()">
533<!--   -->
534</a>
535<ul class="blockList">
536<li class="blockList">
537<h4>getCurrentSegmentSize</h4>
538<pre>public&nbsp;int&nbsp;getCurrentSegmentSize()</pre>
539</li>
540</ul>
541<a name="setCurrentLength(int)">
542<!--   -->
543</a>
544<ul class="blockList">
545<li class="blockList">
546<h4>setCurrentLength</h4>
547<pre>public&nbsp;void&nbsp;setCurrentLength(int&nbsp;len)</pre>
548</li>
549</ul>
550<a name="finishCurrentSegment()">
551<!--   -->
552</a>
553<ul class="blockList">
554<li class="blockList">
555<h4>finishCurrentSegment</h4>
556<pre>public&nbsp;char[]&nbsp;finishCurrentSegment()</pre>
557</li>
558</ul>
559<a name="expandCurrentSegment()">
560<!--   -->
561</a>
562<ul class="blockList">
563<li class="blockList">
564<h4>expandCurrentSegment</h4>
565<pre>public&nbsp;char[]&nbsp;expandCurrentSegment()</pre>
566<div class="block">Method called to expand size of the current segment, to
567 accomodate for more contiguous content. Usually only
568 used when parsing tokens like names.</div>
569</li>
570</ul>
571<a name="toString()">
572<!--   -->
573</a>
574<ul class="blockListLast">
575<li class="blockList">
576<h4>toString</h4>
577<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;toString()</pre>
578<div class="block">Note: calling this method may not be as efficient as calling
579 <a href="../../../../org/codehaus/jackson/util/TextBuffer.html#contentsAsString()"><code>contentsAsString()</code></a>, since it's not guaranteed that resulting
580 String is cached.</div>
581<dl>
582<dt><strong>Overrides:</strong></dt>
583<dd><code><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></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
584</dl>
585</li>
586</ul>
587</li>
588</ul>
589</li>
590</ul>
591</div>
592</div>
593<!-- ========= END OF CLASS DATA ========= -->
594<!-- ======= START OF BOTTOM NAVBAR ====== -->
595<div class="bottomNav"><a name="navbar_bottom">
596<!--   -->
597</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
598<!--   -->
599</a>
600<ul class="navList" title="Navigation">
601<li><a href="../../../../overview-summary.html">Overview</a></li>
602<li><a href="package-summary.html">Package</a></li>
603<li class="navBarCell1Rev">Class</li>
604<li><a href="class-use/TextBuffer.html">Use</a></li>
605<li><a href="package-tree.html">Tree</a></li>
606<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
607<li><a href="../../../../index-all.html">Index</a></li>
608<li><a href="../../../../help-doc.html">Help</a></li>
609</ul>
610</div>
611<div class="subNav">
612<ul class="navList">
613<li><a href="../../../../org/codehaus/jackson/util/MinimalPrettyPrinter.html" title="class in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li>
614<li><a href="../../../../org/codehaus/jackson/util/TokenBuffer.html" title="class in org.codehaus.jackson.util"><span class="strong">Next Class</span></a></li>
615</ul>
616<ul class="navList">
617<li><a href="../../../../index.html?org/codehaus/jackson/util/TextBuffer.html" target="_top">Frames</a></li>
618<li><a href="TextBuffer.html" target="_top">No Frames</a></li>
619</ul>
620<ul class="navList" id="allclasses_navbar_bottom">
621<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
622</ul>
623<div>
624<script type="text/javascript"><!--
625  allClassesLink = document.getElementById("allclasses_navbar_bottom");
626  if(window==top) {
627    allClassesLink.style.display = "block";
628  }
629  else {
630    allClassesLink.style.display = "none";
631  }
632  //-->
633</script>
634</div>
635<div>
636<ul class="subNavList">
637<li>Summary:&nbsp;</li>
638<li>Nested&nbsp;|&nbsp;</li>
639<li>Field&nbsp;|&nbsp;</li>
640<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
641<li><a href="#method_summary">Method</a></li>
642</ul>
643<ul class="subNavList">
644<li>Detail:&nbsp;</li>
645<li>Field&nbsp;|&nbsp;</li>
646<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
647<li><a href="#method_detail">Method</a></li>
648</ul>
649</div>
650<a name="skip-navbar_bottom">
651<!--   -->
652</a></div>
653<!-- ======== END OF BOTTOM NAVBAR ======= -->
654</body>
655</html>
656