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>ByteArrayBuilder (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="ByteArrayBuilder (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/ByteArrayBuilder.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/BufferRecycler.CharBufferType.html" title="enum in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/util/CharTypes.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/ByteArrayBuilder.html" target="_top">Frames</a></li> 44<li><a href="ByteArrayBuilder.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: </li> 64<li>Nested | </li> 65<li>Field | </li> 66<li><a href="#constructor_summary">Constr</a> | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li>Field | </li> 72<li><a href="#constructor_detail">Constr</a> | </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 ByteArrayBuilder" class="title">Class ByteArrayBuilder</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/OutputStream.html?is-external=true" title="class or interface in java.io">java.io.OutputStream</a></li> 91<li> 92<ul class="inheritance"> 93<li>org.codehaus.jackson.util.ByteArrayBuilder</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/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">ByteArrayBuilder</span> 109extends <a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></pre> 110<div class="block">Helper class that is similar to <a href="http://docs.oracle.com/javase/6/docs/api/java/io/ByteArrayOutputStream.html?is-external=true" title="class or interface in java.io"><code>ByteArrayOutputStream</code></a> 111 in usage, but more geared to Jackson use cases internally. 112 Specific changes include segment storage (no need to have linear 113 backing buffer, can avoid reallocs, copying), as well API 114 not based on <a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><code>OutputStream</code></a>. In short, a very much 115 specialized builder object. 116<p> 117 Since version 1.5, also implements <a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><code>OutputStream</code></a> to allow 118 efficient aggregation of output content as a byte array, similar 119 to how <a href="http://docs.oracle.com/javase/6/docs/api/java/io/ByteArrayOutputStream.html?is-external=true" title="class or interface in java.io"><code>ByteArrayOutputStream</code></a> works, but somewhat more 120 efficiently for many use cases.</div> 121</li> 122</ul> 123</div> 124<div class="summary"> 125<ul class="blockList"> 126<li class="blockList"> 127<!-- ======== CONSTRUCTOR SUMMARY ======== --> 128<ul class="blockList"> 129<li class="blockList"><a name="constructor_summary"> 130<!-- --> 131</a> 132<h3>Constructor Summary</h3> 133<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 134<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 135<tr> 136<th class="colOne" scope="col">Constructor and Description</th> 137</tr> 138<tr class="altColor"> 139<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#ByteArrayBuilder()">ByteArrayBuilder</a></strong>()</code> </td> 140</tr> 141<tr class="rowColor"> 142<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#ByteArrayBuilder(org.codehaus.jackson.util.BufferRecycler)">ByteArrayBuilder</a></strong>(<a href="../../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a> br)</code> </td> 143</tr> 144<tr class="altColor"> 145<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#ByteArrayBuilder(org.codehaus.jackson.util.BufferRecycler, int)">ByteArrayBuilder</a></strong>(<a href="../../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a> br, 146 int firstBlockSize)</code> </td> 147</tr> 148<tr class="rowColor"> 149<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#ByteArrayBuilder(int)">ByteArrayBuilder</a></strong>(int firstBlockSize)</code> </td> 150</tr> 151</table> 152</li> 153</ul> 154<!-- ========== METHOD SUMMARY =========== --> 155<ul class="blockList"> 156<li class="blockList"><a name="method_summary"> 157<!-- --> 158</a> 159<h3>Method Summary</h3> 160<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 161<caption><span>Methods</span><span class="tabEnd"> </span></caption> 162<tr> 163<th class="colFirst" scope="col">Modifier and Type</th> 164<th class="colLast" scope="col">Method and Description</th> 165</tr> 166<tr class="altColor"> 167<td class="colFirst"><code>void</code></td> 168<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#append(int)">append</a></strong>(int i)</code> </td> 169</tr> 170<tr class="rowColor"> 171<td class="colFirst"><code>void</code></td> 172<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#appendThreeBytes(int)">appendThreeBytes</a></strong>(int b24)</code> </td> 173</tr> 174<tr class="altColor"> 175<td class="colFirst"><code>void</code></td> 176<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#appendTwoBytes(int)">appendTwoBytes</a></strong>(int b16)</code> </td> 177</tr> 178<tr class="rowColor"> 179<td class="colFirst"><code>void</code></td> 180<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#close()">close</a></strong>()</code> </td> 181</tr> 182<tr class="altColor"> 183<td class="colFirst"><code>byte[]</code></td> 184<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#completeAndCoalesce(int)">completeAndCoalesce</a></strong>(int lastBlockLength)</code> 185<div class="block">Method that will complete "manual" output process, coalesce 186 content (if necessary) and return results as a contiguous buffer.</div> 187</td> 188</tr> 189<tr class="rowColor"> 190<td class="colFirst"><code>byte[]</code></td> 191<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#finishCurrentSegment()">finishCurrentSegment</a></strong>()</code> 192<div class="block">Method called when the current segment buffer is full; will 193 append to current contents, allocate a new segment buffer 194 and return it</div> 195</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/util/ByteArrayBuilder.html#flush()">flush</a></strong>()</code> </td> 200</tr> 201<tr class="rowColor"> 202<td class="colFirst"><code>byte[]</code></td> 203<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#getCurrentSegment()">getCurrentSegment</a></strong>()</code> </td> 204</tr> 205<tr class="altColor"> 206<td class="colFirst"><code>int</code></td> 207<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#getCurrentSegmentLength()">getCurrentSegmentLength</a></strong>()</code> </td> 208</tr> 209<tr class="rowColor"> 210<td class="colFirst"><code>void</code></td> 211<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#release()">release</a></strong>()</code> 212<div class="block">Clean up method to call to release all buffers this object may be 213 using.</div> 214</td> 215</tr> 216<tr class="altColor"> 217<td class="colFirst"><code>void</code></td> 218<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#reset()">reset</a></strong>()</code> </td> 219</tr> 220<tr class="rowColor"> 221<td class="colFirst"><code>byte[]</code></td> 222<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#resetAndGetFirstSegment()">resetAndGetFirstSegment</a></strong>()</code> 223<div class="block">Method called when starting "manual" output: will clear out 224 current state and return the first segment buffer to fill</div> 225</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/util/ByteArrayBuilder.html#setCurrentSegmentLength(int)">setCurrentSegmentLength</a></strong>(int len)</code> </td> 230</tr> 231<tr class="rowColor"> 232<td class="colFirst"><code>byte[]</code></td> 233<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#toByteArray()">toByteArray</a></strong>()</code> 234<div class="block">Method called when results are finalized and we can get the 235 full aggregated result buffer to return to the caller</div> 236</td> 237</tr> 238<tr class="altColor"> 239<td class="colFirst"><code>void</code></td> 240<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/util/ByteArrayBuilder.html#write(byte[])">write</a></strong>(byte[] b)</code> </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/ByteArrayBuilder.html#write(byte[], int, int)">write</a></strong>(byte[] b, 245 int off, 246 int len)</code> </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/ByteArrayBuilder.html#write(int)">write</a></strong>(int b)</code> </td> 251</tr> 252</table> 253<ul class="blockList"> 254<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 255<!-- --> 256</a> 257<h3>Methods inherited from class 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> 258<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> 259</ul> 260</li> 261</ul> 262</li> 263</ul> 264</div> 265<div class="details"> 266<ul class="blockList"> 267<li class="blockList"> 268<!-- ========= CONSTRUCTOR DETAIL ======== --> 269<ul class="blockList"> 270<li class="blockList"><a name="constructor_detail"> 271<!-- --> 272</a> 273<h3>Constructor Detail</h3> 274<a name="ByteArrayBuilder()"> 275<!-- --> 276</a> 277<ul class="blockList"> 278<li class="blockList"> 279<h4>ByteArrayBuilder</h4> 280<pre>public ByteArrayBuilder()</pre> 281</li> 282</ul> 283<a name="ByteArrayBuilder(org.codehaus.jackson.util.BufferRecycler)"> 284<!-- --> 285</a> 286<ul class="blockList"> 287<li class="blockList"> 288<h4>ByteArrayBuilder</h4> 289<pre>public ByteArrayBuilder(<a href="../../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a> br)</pre> 290</li> 291</ul> 292<a name="ByteArrayBuilder(int)"> 293<!-- --> 294</a> 295<ul class="blockList"> 296<li class="blockList"> 297<h4>ByteArrayBuilder</h4> 298<pre>public ByteArrayBuilder(int firstBlockSize)</pre> 299</li> 300</ul> 301<a name="ByteArrayBuilder(org.codehaus.jackson.util.BufferRecycler, int)"> 302<!-- --> 303</a> 304<ul class="blockListLast"> 305<li class="blockList"> 306<h4>ByteArrayBuilder</h4> 307<pre>public ByteArrayBuilder(<a href="../../../../org/codehaus/jackson/util/BufferRecycler.html" title="class in org.codehaus.jackson.util">BufferRecycler</a> br, 308 int firstBlockSize)</pre> 309</li> 310</ul> 311</li> 312</ul> 313<!-- ============ METHOD DETAIL ========== --> 314<ul class="blockList"> 315<li class="blockList"><a name="method_detail"> 316<!-- --> 317</a> 318<h3>Method Detail</h3> 319<a name="reset()"> 320<!-- --> 321</a> 322<ul class="blockList"> 323<li class="blockList"> 324<h4>reset</h4> 325<pre>public void reset()</pre> 326</li> 327</ul> 328<a name="release()"> 329<!-- --> 330</a> 331<ul class="blockList"> 332<li class="blockList"> 333<h4>release</h4> 334<pre>public void release()</pre> 335<div class="block">Clean up method to call to release all buffers this object may be 336 using. After calling the method, no other accessors can be used (and 337 attempt to do so may result in an exception)</div> 338</li> 339</ul> 340<a name="append(int)"> 341<!-- --> 342</a> 343<ul class="blockList"> 344<li class="blockList"> 345<h4>append</h4> 346<pre>public void append(int i)</pre> 347</li> 348</ul> 349<a name="appendTwoBytes(int)"> 350<!-- --> 351</a> 352<ul class="blockList"> 353<li class="blockList"> 354<h4>appendTwoBytes</h4> 355<pre>public void appendTwoBytes(int b16)</pre> 356</li> 357</ul> 358<a name="appendThreeBytes(int)"> 359<!-- --> 360</a> 361<ul class="blockList"> 362<li class="blockList"> 363<h4>appendThreeBytes</h4> 364<pre>public void appendThreeBytes(int b24)</pre> 365</li> 366</ul> 367<a name="toByteArray()"> 368<!-- --> 369</a> 370<ul class="blockList"> 371<li class="blockList"> 372<h4>toByteArray</h4> 373<pre>public byte[] toByteArray()</pre> 374<div class="block">Method called when results are finalized and we can get the 375 full aggregated result buffer to return to the caller</div> 376</li> 377</ul> 378<a name="resetAndGetFirstSegment()"> 379<!-- --> 380</a> 381<ul class="blockList"> 382<li class="blockList"> 383<h4>resetAndGetFirstSegment</h4> 384<pre>public byte[] resetAndGetFirstSegment()</pre> 385<div class="block">Method called when starting "manual" output: will clear out 386 current state and return the first segment buffer to fill</div> 387<dl><dt><span class="strong">Since:</span></dt> 388 <dd>1.6</dd></dl> 389</li> 390</ul> 391<a name="finishCurrentSegment()"> 392<!-- --> 393</a> 394<ul class="blockList"> 395<li class="blockList"> 396<h4>finishCurrentSegment</h4> 397<pre>public byte[] finishCurrentSegment()</pre> 398<div class="block">Method called when the current segment buffer is full; will 399 append to current contents, allocate a new segment buffer 400 and return it</div> 401<dl><dt><span class="strong">Since:</span></dt> 402 <dd>1.6</dd></dl> 403</li> 404</ul> 405<a name="completeAndCoalesce(int)"> 406<!-- --> 407</a> 408<ul class="blockList"> 409<li class="blockList"> 410<h4>completeAndCoalesce</h4> 411<pre>public byte[] completeAndCoalesce(int lastBlockLength)</pre> 412<div class="block">Method that will complete "manual" output process, coalesce 413 content (if necessary) and return results as a contiguous buffer.</div> 414<dl><dt><span class="strong">Parameters:</span></dt><dd><code>lastBlockLength</code> - Amount of content in the current segment 415 buffer.</dd> 416<dt><span class="strong">Returns:</span></dt><dd>Coalesced contents</dd></dl> 417</li> 418</ul> 419<a name="getCurrentSegment()"> 420<!-- --> 421</a> 422<ul class="blockList"> 423<li class="blockList"> 424<h4>getCurrentSegment</h4> 425<pre>public byte[] getCurrentSegment()</pre> 426</li> 427</ul> 428<a name="setCurrentSegmentLength(int)"> 429<!-- --> 430</a> 431<ul class="blockList"> 432<li class="blockList"> 433<h4>setCurrentSegmentLength</h4> 434<pre>public void setCurrentSegmentLength(int len)</pre> 435</li> 436</ul> 437<a name="getCurrentSegmentLength()"> 438<!-- --> 439</a> 440<ul class="blockList"> 441<li class="blockList"> 442<h4>getCurrentSegmentLength</h4> 443<pre>public int getCurrentSegmentLength()</pre> 444</li> 445</ul> 446<a name="write(byte[])"> 447<!-- --> 448</a> 449<ul class="blockList"> 450<li class="blockList"> 451<h4>write</h4> 452<pre>public void write(byte[] b)</pre> 453<dl> 454<dt><strong>Overrides:</strong></dt> 455<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#write(byte[])" title="class or interface in java.io">write</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></dd> 456</dl> 457</li> 458</ul> 459<a name="write(byte[], int, int)"> 460<!-- --> 461</a> 462<ul class="blockList"> 463<li class="blockList"> 464<h4>write</h4> 465<pre>public void write(byte[] b, 466 int off, 467 int len)</pre> 468<dl> 469<dt><strong>Overrides:</strong></dt> 470<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#write(byte[], int, int)" title="class or interface in java.io">write</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></dd> 471</dl> 472</li> 473</ul> 474<a name="write(int)"> 475<!-- --> 476</a> 477<ul class="blockList"> 478<li class="blockList"> 479<h4>write</h4> 480<pre>public void write(int b)</pre> 481<dl> 482<dt><strong>Specified by:</strong></dt> 483<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#write(int)" title="class or interface in java.io">write</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></dd> 484</dl> 485</li> 486</ul> 487<a name="close()"> 488<!-- --> 489</a> 490<ul class="blockList"> 491<li class="blockList"> 492<h4>close</h4> 493<pre>public void close()</pre> 494<dl> 495<dt><strong>Specified by:</strong></dt> 496<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> in interface <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> 497<dt><strong>Specified by:</strong></dt> 498<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> in interface <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> 499<dt><strong>Overrides:</strong></dt> 500<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#close()" title="class or interface in java.io">close</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></dd> 501</dl> 502</li> 503</ul> 504<a name="flush()"> 505<!-- --> 506</a> 507<ul class="blockListLast"> 508<li class="blockList"> 509<h4>flush</h4> 510<pre>public void flush()</pre> 511<dl> 512<dt><strong>Specified by:</strong></dt> 513<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> in interface <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> 514<dt><strong>Overrides:</strong></dt> 515<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#flush()" title="class or interface in java.io">flush</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></dd> 516</dl> 517</li> 518</ul> 519</li> 520</ul> 521</li> 522</ul> 523</div> 524</div> 525<!-- ========= END OF CLASS DATA ========= --> 526<!-- ======= START OF BOTTOM NAVBAR ====== --> 527<div class="bottomNav"><a name="navbar_bottom"> 528<!-- --> 529</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 530<!-- --> 531</a> 532<ul class="navList" title="Navigation"> 533<li><a href="../../../../overview-summary.html">Overview</a></li> 534<li><a href="package-summary.html">Package</a></li> 535<li class="navBarCell1Rev">Class</li> 536<li><a href="class-use/ByteArrayBuilder.html">Use</a></li> 537<li><a href="package-tree.html">Tree</a></li> 538<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 539<li><a href="../../../../index-all.html">Index</a></li> 540<li><a href="../../../../help-doc.html">Help</a></li> 541</ul> 542</div> 543<div class="subNav"> 544<ul class="navList"> 545<li><a href="../../../../org/codehaus/jackson/util/BufferRecycler.CharBufferType.html" title="enum in org.codehaus.jackson.util"><span class="strong">Prev Class</span></a></li> 546<li><a href="../../../../org/codehaus/jackson/util/CharTypes.html" title="class in org.codehaus.jackson.util"><span class="strong">Next Class</span></a></li> 547</ul> 548<ul class="navList"> 549<li><a href="../../../../index.html?org/codehaus/jackson/util/ByteArrayBuilder.html" target="_top">Frames</a></li> 550<li><a href="ByteArrayBuilder.html" target="_top">No Frames</a></li> 551</ul> 552<ul class="navList" id="allclasses_navbar_bottom"> 553<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 554</ul> 555<div> 556<script type="text/javascript"><!-- 557 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 558 if(window==top) { 559 allClassesLink.style.display = "block"; 560 } 561 else { 562 allClassesLink.style.display = "none"; 563 } 564 //--> 565</script> 566</div> 567<div> 568<ul class="subNavList"> 569<li>Summary: </li> 570<li>Nested | </li> 571<li>Field | </li> 572<li><a href="#constructor_summary">Constr</a> | </li> 573<li><a href="#method_summary">Method</a></li> 574</ul> 575<ul class="subNavList"> 576<li>Detail: </li> 577<li>Field | </li> 578<li><a href="#constructor_detail">Constr</a> | </li> 579<li><a href="#method_detail">Method</a></li> 580</ul> 581</div> 582<a name="skip-navbar_bottom"> 583<!-- --> 584</a></div> 585<!-- ======== END OF BOTTOM NAVBAR ======= --> 586</body> 587</html> 588