1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (1.8.0) on Sun Jul 19 11:36:54 PDT 2015 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>ByteBufferBackedOutputStream (jackson-databind 2.6.0 API)</title> 8<meta name="date" content="2015-07-19"> 9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> 10<script type="text/javascript" src="../../../../../script.js"></script> 11</head> 12<body> 13<script type="text/javascript"><!-- 14 try { 15 if (location.href.indexOf('is-external=true') == -1) { 16 parent.document.title="ByteBufferBackedOutputStream (jackson-databind 2.6.0 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":10,"i1":10}; 23var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; 24var altColor = "altColor"; 25var rowColor = "rowColor"; 26var tableTab = "tableTab"; 27var activeTableTab = "activeTableTab"; 28</script> 29<noscript> 30<div>JavaScript is disabled on your browser.</div> 31</noscript> 32<!-- ========= START OF TOP NAVBAR ======= --> 33<div class="topNav"><a name="navbar.top"> 34<!-- --> 35</a> 36<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 37<a name="navbar.top.firstrow"> 38<!-- --> 39</a> 40<ul class="navList" title="Navigation"> 41<li><a href="../../../../../overview-summary.html">Overview</a></li> 42<li><a href="package-summary.html">Package</a></li> 43<li class="navBarCell1Rev">Class</li> 44<li><a href="class-use/ByteBufferBackedOutputStream.html">Use</a></li> 45<li><a href="package-tree.html">Tree</a></li> 46<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 47<li><a href="../../../../../index-all.html">Index</a></li> 48<li><a href="../../../../../help-doc.html">Help</a></li> 49</ul> 50</div> 51<div class="subNav"> 52<ul class="navList"> 53<li><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedInputStream.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Prev Class</span></a></li> 54<li><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Next Class</span></a></li> 55</ul> 56<ul class="navList"> 57<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.html" target="_top">Frames</a></li> 58<li><a href="ByteBufferBackedOutputStream.html" target="_top">No Frames</a></li> 59</ul> 60<ul class="navList" id="allclasses_navbar_top"> 61<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 62</ul> 63<div> 64<script type="text/javascript"><!-- 65 allClassesLink = document.getElementById("allclasses_navbar_top"); 66 if(window==top) { 67 allClassesLink.style.display = "block"; 68 } 69 else { 70 allClassesLink.style.display = "none"; 71 } 72 //--> 73</script> 74</div> 75<div> 76<ul class="subNavList"> 77<li>Summary: </li> 78<li>Nested | </li> 79<li><a href="#field.summary">Field</a> | </li> 80<li><a href="#constructor.summary">Constr</a> | </li> 81<li><a href="#method.summary">Method</a></li> 82</ul> 83<ul class="subNavList"> 84<li>Detail: </li> 85<li><a href="#field.detail">Field</a> | </li> 86<li><a href="#constructor.detail">Constr</a> | </li> 87<li><a href="#method.detail">Method</a></li> 88</ul> 89</div> 90<a name="skip.navbar.top"> 91<!-- --> 92</a></div> 93<!-- ========= END OF TOP NAVBAR ========= --> 94<!-- ======== START OF CLASS DATA ======== --> 95<div class="header"> 96<div class="subTitle">com.fasterxml.jackson.databind.util</div> 97<h2 title="Class ByteBufferBackedOutputStream" class="title">Class ByteBufferBackedOutputStream</h2> 98</div> 99<div class="contentContainer"> 100<ul class="inheritance"> 101<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> 102<li> 103<ul class="inheritance"> 104<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> 105<li> 106<ul class="inheritance"> 107<li>com.fasterxml.jackson.databind.util.ByteBufferBackedOutputStream</li> 108</ul> 109</li> 110</ul> 111</li> 112</ul> 113<div class="description"> 114<ul class="blockList"> 115<li class="blockList"> 116<dl> 117<dt>All Implemented Interfaces:</dt> 118<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> 119</dl> 120<hr> 121<br> 122<pre>public class <span class="typeNameLabel">ByteBufferBackedOutputStream</span> 123extends <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> 124<div class="block">Simple <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> implementation that appends content 125 written in given <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio"><code>ByteBuffer</code></a> instance.</div> 126</li> 127</ul> 128</div> 129<div class="summary"> 130<ul class="blockList"> 131<li class="blockList"> 132<!-- =========== FIELD SUMMARY =========== --> 133<ul class="blockList"> 134<li class="blockList"><a name="field.summary"> 135<!-- --> 136</a> 137<h3>Field Summary</h3> 138<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 139<caption><span>Fields</span><span class="tabEnd"> </span></caption> 140<tr> 141<th class="colFirst" scope="col">Modifier and Type</th> 142<th class="colLast" scope="col">Field and Description</th> 143</tr> 144<tr class="altColor"> 145<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a></code></td> 146<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.html#Z:Z_b">_b</a></span></code> </td> 147</tr> 148</table> 149</li> 150</ul> 151<!-- ======== CONSTRUCTOR SUMMARY ======== --> 152<ul class="blockList"> 153<li class="blockList"><a name="constructor.summary"> 154<!-- --> 155</a> 156<h3>Constructor Summary</h3> 157<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 158<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 159<tr> 160<th class="colOne" scope="col">Constructor and Description</th> 161</tr> 162<tr class="altColor"> 163<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.html#ByteBufferBackedOutputStream-java.nio.ByteBuffer-">ByteBufferBackedOutputStream</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf)</code> </td> 164</tr> 165</table> 166</li> 167</ul> 168<!-- ========== METHOD SUMMARY =========== --> 169<ul class="blockList"> 170<li class="blockList"><a name="method.summary"> 171<!-- --> 172</a> 173<h3>Method Summary</h3> 174<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 175<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> 176<tr> 177<th class="colFirst" scope="col">Modifier and Type</th> 178<th class="colLast" scope="col">Method and Description</th> 179</tr> 180<tr id="i0" class="altColor"> 181<td class="colFirst"><code>void</code></td> 182<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.html#write-byte:A-int-int-">write</a></span>(byte[] bytes, 183 int off, 184 int len)</code> </td> 185</tr> 186<tr id="i1" class="rowColor"> 187<td class="colFirst"><code>void</code></td> 188<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.html#write-int-">write</a></span>(int b)</code> </td> 189</tr> 190</table> 191<ul class="blockList"> 192<li class="blockList"><a name="methods.inherited.from.class.java.io.OutputStream"> 193<!-- --> 194</a> 195<h3>Methods inherited from class java.io.<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></h3> 196<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>, <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>, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#write-byte:A-" title="class or interface in java.io">write</a></code></li> 197</ul> 198<ul class="blockList"> 199<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 200<!-- --> 201</a> 202<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> 203<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> 204</ul> 205</li> 206</ul> 207</li> 208</ul> 209</div> 210<div class="details"> 211<ul class="blockList"> 212<li class="blockList"> 213<!-- ============ FIELD DETAIL =========== --> 214<ul class="blockList"> 215<li class="blockList"><a name="field.detail"> 216<!-- --> 217</a> 218<h3>Field Detail</h3> 219<a name="Z:Z_b"> 220<!-- --> 221</a> 222<ul class="blockListLast"> 223<li class="blockList"> 224<h4>_b</h4> 225<pre>protected final <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> _b</pre> 226</li> 227</ul> 228</li> 229</ul> 230<!-- ========= CONSTRUCTOR DETAIL ======== --> 231<ul class="blockList"> 232<li class="blockList"><a name="constructor.detail"> 233<!-- --> 234</a> 235<h3>Constructor Detail</h3> 236<a name="ByteBufferBackedOutputStream-java.nio.ByteBuffer-"> 237<!-- --> 238</a> 239<ul class="blockListLast"> 240<li class="blockList"> 241<h4>ByteBufferBackedOutputStream</h4> 242<pre>public ByteBufferBackedOutputStream(<a href="http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf)</pre> 243</li> 244</ul> 245</li> 246</ul> 247<!-- ============ METHOD DETAIL ========== --> 248<ul class="blockList"> 249<li class="blockList"><a name="method.detail"> 250<!-- --> 251</a> 252<h3>Method Detail</h3> 253<a name="write-int-"> 254<!-- --> 255</a> 256<ul class="blockList"> 257<li class="blockList"> 258<h4>write</h4> 259<pre>public void write(int b) 260 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> 261<dl> 262<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 263<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> 264<dt><span class="throwsLabel">Throws:</span></dt> 265<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> 266</dl> 267</li> 268</ul> 269<a name="write-byte:A-int-int-"> 270<!-- --> 271</a> 272<ul class="blockListLast"> 273<li class="blockList"> 274<h4>write</h4> 275<pre>public void write(byte[] bytes, 276 int off, 277 int len) 278 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> 279<dl> 280<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 281<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#write-byte:A-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> 282<dt><span class="throwsLabel">Throws:</span></dt> 283<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> 284</dl> 285</li> 286</ul> 287</li> 288</ul> 289</li> 290</ul> 291</div> 292</div> 293<!-- ========= END OF CLASS DATA ========= --> 294<!-- ======= START OF BOTTOM NAVBAR ====== --> 295<div class="bottomNav"><a name="navbar.bottom"> 296<!-- --> 297</a> 298<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 299<a name="navbar.bottom.firstrow"> 300<!-- --> 301</a> 302<ul class="navList" title="Navigation"> 303<li><a href="../../../../../overview-summary.html">Overview</a></li> 304<li><a href="package-summary.html">Package</a></li> 305<li class="navBarCell1Rev">Class</li> 306<li><a href="class-use/ByteBufferBackedOutputStream.html">Use</a></li> 307<li><a href="package-tree.html">Tree</a></li> 308<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 309<li><a href="../../../../../index-all.html">Index</a></li> 310<li><a href="../../../../../help-doc.html">Help</a></li> 311</ul> 312</div> 313<div class="subNav"> 314<ul class="navList"> 315<li><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedInputStream.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Prev Class</span></a></li> 316<li><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Next Class</span></a></li> 317</ul> 318<ul class="navList"> 319<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.html" target="_top">Frames</a></li> 320<li><a href="ByteBufferBackedOutputStream.html" target="_top">No Frames</a></li> 321</ul> 322<ul class="navList" id="allclasses_navbar_bottom"> 323<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 324</ul> 325<div> 326<script type="text/javascript"><!-- 327 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 328 if(window==top) { 329 allClassesLink.style.display = "block"; 330 } 331 else { 332 allClassesLink.style.display = "none"; 333 } 334 //--> 335</script> 336</div> 337<div> 338<ul class="subNavList"> 339<li>Summary: </li> 340<li>Nested | </li> 341<li><a href="#field.summary">Field</a> | </li> 342<li><a href="#constructor.summary">Constr</a> | </li> 343<li><a href="#method.summary">Method</a></li> 344</ul> 345<ul class="subNavList"> 346<li>Detail: </li> 347<li><a href="#field.detail">Field</a> | </li> 348<li><a href="#constructor.detail">Constr</a> | </li> 349<li><a href="#method.detail">Method</a></li> 350</ul> 351</div> 352<a name="skip.navbar.bottom"> 353<!-- --> 354</a></div> 355<!-- ======== END OF BOTTOM NAVBAR ======= --> 356<p class="legalCopy"><small>Copyright © 2014–2015 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 357</body> 358</html> 359