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