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_162) on Sat Apr 25 17:14:49 PDT 2020 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>ByteBufferBackedInputStream (jackson-databind 2.11.0 API)</title> 8<meta name="date" content="2020-04-25"> 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="ByteBufferBackedInputStream (jackson-databind 2.11.0 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":10,"i1":10,"i2":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/ByteBufferBackedInputStream.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/BeanUtil.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/ByteBufferBackedOutputStream.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/ByteBufferBackedInputStream.html" target="_top">Frames</a></li> 58<li><a href="ByteBufferBackedInputStream.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 ByteBufferBackedInputStream" class="title">Class ByteBufferBackedInputStream</h2> 98</div> 99<div class="contentContainer"> 100<ul class="inheritance"> 101<li><a href="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">java.io.InputStream</a></li> 105<li> 106<ul class="inheritance"> 107<li>com.fasterxml.jackson.databind.util.ByteBufferBackedInputStream</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="https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="https://docs.oracle.com/javase/8/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">ByteBufferBackedInputStream</span> 123extends <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></pre> 124<div class="block">Simple <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a> implementation that exposes currently 125 available content of a <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio"><code>ByteBuffer</code></a>.</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="https://docs.oracle.com/javase/8/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/ByteBufferBackedInputStream.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/ByteBufferBackedInputStream.html#ByteBufferBackedInputStream-java.nio.ByteBuffer-">ByteBufferBackedInputStream</a></span>(<a href="https://docs.oracle.com/javase/8/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>int</code></td> 182<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedInputStream.html#available--">available</a></span>()</code> </td> 183</tr> 184<tr id="i1" class="rowColor"> 185<td class="colFirst"><code>int</code></td> 186<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedInputStream.html#read--">read</a></span>()</code> </td> 187</tr> 188<tr id="i2" class="altColor"> 189<td class="colFirst"><code>int</code></td> 190<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedInputStream.html#read-byte:A-int-int-">read</a></span>(byte[] bytes, 191 int off, 192 int len)</code> </td> 193</tr> 194</table> 195<ul class="blockList"> 196<li class="blockList"><a name="methods.inherited.from.class.java.io.InputStream"> 197<!-- --> 198</a> 199<h3>Methods inherited from class java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></h3> 200<code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true#close--" title="class or interface in java.io">close</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true#mark-int-" title="class or interface in java.io">mark</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true#markSupported--" title="class or interface in java.io">markSupported</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true#read-byte:A-" title="class or interface in java.io">read</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true#reset--" title="class or interface in java.io">reset</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true#skip-long-" title="class or interface in java.io">skip</a></code></li> 201</ul> 202<ul class="blockList"> 203<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 204<!-- --> 205</a> 206<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 207<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 208</ul> 209</li> 210</ul> 211</li> 212</ul> 213</div> 214<div class="details"> 215<ul class="blockList"> 216<li class="blockList"> 217<!-- ============ FIELD DETAIL =========== --> 218<ul class="blockList"> 219<li class="blockList"><a name="field.detail"> 220<!-- --> 221</a> 222<h3>Field Detail</h3> 223<a name="Z:Z_b"> 224<!-- --> 225</a> 226<ul class="blockListLast"> 227<li class="blockList"> 228<h4>_b</h4> 229<pre>protected final <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> _b</pre> 230</li> 231</ul> 232</li> 233</ul> 234<!-- ========= CONSTRUCTOR DETAIL ======== --> 235<ul class="blockList"> 236<li class="blockList"><a name="constructor.detail"> 237<!-- --> 238</a> 239<h3>Constructor Detail</h3> 240<a name="ByteBufferBackedInputStream-java.nio.ByteBuffer-"> 241<!-- --> 242</a> 243<ul class="blockListLast"> 244<li class="blockList"> 245<h4>ByteBufferBackedInputStream</h4> 246<pre>public ByteBufferBackedInputStream(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf)</pre> 247</li> 248</ul> 249</li> 250</ul> 251<!-- ============ METHOD DETAIL ========== --> 252<ul class="blockList"> 253<li class="blockList"><a name="method.detail"> 254<!-- --> 255</a> 256<h3>Method Detail</h3> 257<a name="available--"> 258<!-- --> 259</a> 260<ul class="blockList"> 261<li class="blockList"> 262<h4>available</h4> 263<pre>public int available()</pre> 264<dl> 265<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 266<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true#available--" title="class or interface in java.io">available</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></dd> 267</dl> 268</li> 269</ul> 270<a name="read--"> 271<!-- --> 272</a> 273<ul class="blockList"> 274<li class="blockList"> 275<h4>read</h4> 276<pre>public int read() 277 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 278<dl> 279<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 280<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true#read--" title="class or interface in java.io">read</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></dd> 281<dt><span class="throwsLabel">Throws:</span></dt> 282<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 283</dl> 284</li> 285</ul> 286<a name="read-byte:A-int-int-"> 287<!-- --> 288</a> 289<ul class="blockListLast"> 290<li class="blockList"> 291<h4>read</h4> 292<pre>public int read(byte[] bytes, 293 int off, 294 int len) 295 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 296<dl> 297<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 298<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true#read-byte:A-int-int-" title="class or interface in java.io">read</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></dd> 299<dt><span class="throwsLabel">Throws:</span></dt> 300<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 301</dl> 302</li> 303</ul> 304</li> 305</ul> 306</li> 307</ul> 308</div> 309</div> 310<!-- ========= END OF CLASS DATA ========= --> 311<!-- ======= START OF BOTTOM NAVBAR ====== --> 312<div class="bottomNav"><a name="navbar.bottom"> 313<!-- --> 314</a> 315<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 316<a name="navbar.bottom.firstrow"> 317<!-- --> 318</a> 319<ul class="navList" title="Navigation"> 320<li><a href="../../../../../overview-summary.html">Overview</a></li> 321<li><a href="package-summary.html">Package</a></li> 322<li class="navBarCell1Rev">Class</li> 323<li><a href="class-use/ByteBufferBackedInputStream.html">Use</a></li> 324<li><a href="package-tree.html">Tree</a></li> 325<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 326<li><a href="../../../../../index-all.html">Index</a></li> 327<li><a href="../../../../../help-doc.html">Help</a></li> 328</ul> 329</div> 330<div class="subNav"> 331<ul class="navList"> 332<li><a href="../../../../../com/fasterxml/jackson/databind/util/BeanUtil.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Prev Class</span></a></li> 333<li><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Next Class</span></a></li> 334</ul> 335<ul class="navList"> 336<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/ByteBufferBackedInputStream.html" target="_top">Frames</a></li> 337<li><a href="ByteBufferBackedInputStream.html" target="_top">No Frames</a></li> 338</ul> 339<ul class="navList" id="allclasses_navbar_bottom"> 340<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 341</ul> 342<div> 343<script type="text/javascript"><!-- 344 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 345 if(window==top) { 346 allClassesLink.style.display = "block"; 347 } 348 else { 349 allClassesLink.style.display = "none"; 350 } 351 //--> 352</script> 353</div> 354<div> 355<ul class="subNavList"> 356<li>Summary: </li> 357<li>Nested | </li> 358<li><a href="#field.summary">Field</a> | </li> 359<li><a href="#constructor.summary">Constr</a> | </li> 360<li><a href="#method.summary">Method</a></li> 361</ul> 362<ul class="subNavList"> 363<li>Detail: </li> 364<li><a href="#field.detail">Field</a> | </li> 365<li><a href="#constructor.detail">Constr</a> | </li> 366<li><a href="#method.detail">Method</a></li> 367</ul> 368</div> 369<a name="skip.navbar.bottom"> 370<!-- --> 371</a></div> 372<!-- ======== END OF BOTTOM NAVBAR ======= --> 373<p class="legalCopy"><small>Copyright © 2008–2020 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 374</body> 375</html> 376