Skip to content

Commit

Permalink
Site updated at 2024-01-21 09:04:33 UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
icai committed Jan 21, 2024
1 parent 26fd8aa commit 74678af
Show file tree
Hide file tree
Showing 1,449 changed files with 348,841 additions and 1 deletion.

Large diffs are not rendered by default.

263 changes: 263 additions & 0 deletions openjdk~21/java.base/java/io/bufferedinputstream.html

Large diffs are not rendered by default.

199 changes: 199 additions & 0 deletions openjdk~21/java.base/java/io/bufferedoutputstream.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@

<!DOCTYPE HTML>

<html lang="en" class="_theme-default">

<head>
<meta charset="utf-8">
<title>BufferedOutputStream - OpenJDK 21 - W3cubDocs</title>

<meta name="description" content="Ordinarily this method stores bytes from the given array into this stream&#39;s buffer, flushing the buffer to the underlying output stream as &hellip;">
<meta name="keywords" content="class, bufferedoutputstream, openjdk, openjdk~21">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="mobile-web-app-capable" content="yes">

<link rel="canonical" href="https://docs.w3cub.com/openjdk~21/java.base/java/io/bufferedoutputstream.html">
<link href="/favicon.png" rel="icon">
<link rel="stylesheet" type="text/css" href="/assets/application-c8f743fc70bb84079c3cf4b71f5f99835529659c30689b2fd6193651a680f383ef1d96896f8966c7ca8a0160ffd557685bb8ad12820ec6002d60143812238086.css">
<script type="text/javascript" src="/assets/application-79c555f6b25481fffac2cac30a7f3e54e608ca09e9e8e42bb1790095ba6d0fcace47d6bc624ddce952c70370892f2d46864f89e6943d4f7f7ff16c8a3231a91a.js"></script>
<script src="/json/openjdk~21.js"></script>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-R3WC07G3GB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-R3WC07G3GB');
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2572770204602497"
crossorigin="anonymous"></script>
<script async custom-element="amp-auto-ads"
src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js">
</script>


</head>

<body class="docs">
<amp-auto-ads type="adsense"
data-ad-client="ca-pub-2572770204602497">
</amp-auto-ads>
<div class="_app">
<header class="_header">

<a class="_home-link" href="/" ></a>
<a class="_menu-link"></a>
<h1 class="_logo">
<a href="/" class="_nav-link" title="API Documentation Browser">W3cubDocs</a>
</h1>

<span class="_logo-sub-nav">/</span><span class="_logo-sub-nav"><a href="/openjdk~21/" class="_nav-link" title="" style="margin-left:0;">OpenJDK 21</a></span>

<nav class="_nav">
<a href="https://tools.w3cub.com/?_sp=docs" target="_blank" class="_nav-link ">W3cubTools</a>
<a href="/cheatsheets/" class="_nav-link ">Cheatsheets</a>
<a href="/about/" class="_nav-link ">About</a>
</nav>
</header>
<section class="_sidebar">

<form class="_search">
<input type="search" class="_search-input" placeholder="Search&hellip;" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" maxlength="20">
<a class="_search-clear"></a>
<div class="_search-tag"></div>
</form>

<div class="_list-wrap">
<div class="_list">

</div>
</div>
</section>
<section class="_container ">
<div class="_content">
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2572770204602497"
data-ad-slot="6861657091"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<div class="_page _openjdk">


<h1 title="Class BufferedOutputStream" class="title">Class BufferedOutputStream</h1> <div class="inheritance" title="Inheritance Tree">
<a href="../lang/object" title="class in java.lang">java.lang.Object</a> <div class="inheritance">
<a href="outputstream" title="class in java.io">java.io.OutputStream</a> <div class="inheritance">
<a href="filteroutputstream" title="class in java.io">java.io.FilterOutputStream</a> <div class="inheritance">java.io.BufferedOutputStream</div> </div> </div> </div> <section class="class-description" id="class-description"> <dl class="notes"> <dt>All Implemented Interfaces:</dt> <dd>
<code><a href="closeable" title="interface in java.io">Closeable</a></code>, <code><a href="flushable" title="interface in java.io">Flushable</a></code>, <code><a href="../lang/autocloseable" title="interface in java.lang">AutoCloseable</a></code>
</dd> </dl> <pre class="lang-java" data-language="java">public class BufferedOutputStream extends FilterOutputStream</pre> <div class="block">The class implements a buffered output stream. By setting up such an output stream, an application can write bytes to the underlying output stream without necessarily causing a call to the underlying system for each byte written.</div> <dl class="notes"> <dt>Since:</dt> <dd>1.0</dd> </dl> </section> <section class="summary"> <section class="field-summary" id="field-summary"> <h2>Field Summary</h2> <table class="summary-table three-column-summary"> <tr>
<th>Modifier and Type</th>
<th>Field</th>
<th>Description</th>
</tr>
<tr>
<td><code>protected byte[]</code></td>
<td><code><a href="#buf" class="member-name-link">buf</a></code></td>
<td> <div class="block">The internal buffer where data is stored.</div> </td>
</tr>
<tr>
<td><code>protected int</code></td>
<td><code><a href="#count" class="member-name-link">count</a></code></td>
<td> <div class="block">The number of valid bytes in the buffer.</div> </td>
</tr>
</table> <div class="inherited-list"> <h3 id="fields-inherited-from-class-java.io.FilterOutputStream">Fields declared in class java.io.<a href="filteroutputstream" title="class in java.io">FilterOutputStream</a>
</h3> <code><a href="filteroutputstream#out">out</a></code>
</div> </section><section class="constructor-summary" id="constructor-summary"> <h2>Constructor Summary</h2> <table class="summary-table two-column-summary"> <tr>
<th>Constructor</th>
<th>Description</th>
</tr>
<tr>
<td><code><a href="#%3Cinit%3E(java.io.OutputStream)" class="member-name-link">BufferedOutputStream</a><wbr>(<a href="outputstream" title="class in java.io">OutputStream</a> out)</wbr></code></td>
<td> <div class="block">Creates a new buffered output stream to write data to the specified underlying output stream.</div> </td>
</tr>
<tr>
<td><code><a href="#%3Cinit%3E(java.io.OutputStream,int)" class="member-name-link">BufferedOutputStream</a><wbr>(<a href="outputstream" title="class in java.io">OutputStream</a> out,
int size)</wbr></code></td>
<td> <div class="block">Creates a new buffered output stream to write data to the specified underlying output stream with the specified buffer size.</div> </td>
</tr>
</table> </section><section class="method-summary" id="method-summary"> <h2>Method Summary</h2> <div id="method-summary-table"> <div id="method-summary-table.tabpanel" role="tabpanel"> <table class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0"> <tr>
<th>Modifier and Type</th>
<th>Method</th>
<th>Description</th>
</tr>
<tr>
<td><code>void</code></td>
<td><code><a href="#flush()" class="member-name-link">flush</a>()</code></td>
<td> <div class="block">Flushes this buffered output stream.</div> </td>
</tr>
<tr>
<td><code>void</code></td>
<td><code><a href="#write(byte%5B%5D,int,int)" class="member-name-link">write</a><wbr>(byte[] b,
int off,
int len)</wbr></code></td>
<td> <div class="block">Writes <code>len</code> bytes from the specified byte array starting at offset <code>off</code> to this buffered output stream.</div> </td>
</tr>
<tr>
<td><code>void</code></td>
<td><code><a href="#write(int)" class="member-name-link">write</a><wbr>(int b)</wbr></code></td>
<td> <div class="block">Writes the specified byte to this buffered output stream.</div> </td>
</tr>
</table> </div> </div> <div class="inherited-list"> <h3 id="methods-inherited-from-class-java.io.FilterOutputStream">Methods declared in class java.io.<a href="filteroutputstream" title="class in java.io">FilterOutputStream</a>
</h3> <code><a href="filteroutputstream#close()">close</a>, <a href="filteroutputstream#write(byte%5B%5D)">write</a></code>
</div> <div class="inherited-list"> <h3 id="methods-inherited-from-class-java.io.OutputStream">Methods declared in class java.io.<a href="outputstream" title="class in java.io">OutputStream</a>
</h3> <code><a href="outputstream#nullOutputStream()">nullOutputStream</a></code>
</div> <div class="inherited-list"> <h3 id="methods-inherited-from-class-java.lang.Object">Methods declared in class java.lang.<a href="../lang/object" title="class in java.lang">Object</a>
</h3> <code><a href="../lang/object#clone()">clone</a>, <a href="../lang/object#equals(java.lang.Object)">equals</a>, <a href="../lang/object#finalize()">finalize</a>, <a href="../lang/object#getClass()">getClass</a>, <a href="../lang/object#hashCode()">hashCode</a>, <a href="../lang/object#notify()">notify</a>, <a href="../lang/object#notifyAll()">notifyAll</a>, <a href="../lang/object#toString()">toString</a>, <a href="../lang/object#wait()">wait</a>, <a href="../lang/object#wait(long)">wait</a>, <a href="../lang/object#wait(long,int)">wait</a></code>
</div> </section> </section> <section class="details"> <section class="field-details" id="field-detail"> <h2>Field Details</h2> </section><section class="detail" id="buf"> <h3>buf</h3> <pre class="lang-java" data-language="java">protected byte[] buf</pre> <div class="block">The internal buffer where data is stored.</div> </section><section class="detail" id="count"> <h3>count</h3> <pre class="lang-java" data-language="java">protected int count</pre> <div class="block">The number of valid bytes in the buffer. This value is always in the range <code>0</code> through <code>buf.length</code>; elements <code>buf[0]</code> through <code>buf[count-1]</code> contain valid byte data.</div> </section><section class="constructor-details" id="constructor-detail"> <h2>Constructor Details</h2> </section><section class="detail" id="&lt;init&gt;(java.io.OutputStream)"> <h3>BufferedOutputStream</h3> <pre class="lang-java" data-language="java">public BufferedOutputStream(OutputStream out)</pre> <div class="block">Creates a new buffered output stream to write data to the specified underlying output stream.</div> <dl class="notes"> <dt>Parameters:</dt> <dd>
<code>out</code> - the underlying output stream.</dd> </dl> </section><section class="detail" id="&lt;init&gt;(java.io.OutputStream,int)"> <h3>BufferedOutputStream</h3> <pre class="lang-java" data-language="java">public BufferedOutputStream(OutputStream out, int size)</pre> <div class="block">Creates a new buffered output stream to write data to the specified underlying output stream with the specified buffer size.</div> <dl class="notes"> <dt>Parameters:</dt> <dd>
<code>out</code> - the underlying output stream.</dd> <dd>
<code>size</code> - the buffer size.</dd> <dt>Throws:</dt> <dd>
<code><a href="../lang/illegalargumentexception" title="class in java.lang">IllegalArgumentException</a></code> - if size &lt;= 0.</dd> </dl> </section><section class="method-details" id="method-detail"> <h2>Method Details</h2> </section><section class="detail" id="write(int)"> <h3>write</h3> <pre class="lang-java" data-language="java">public void write(int b) throws IOException</pre> <div class="block">Writes the specified byte to this buffered output stream.</div> <dl class="notes"> <dt>Overrides:</dt> <dd>
<code><a href="filteroutputstream#write(int)">write</a></code> in class <code><a href="filteroutputstream" title="class in java.io">FilterOutputStream</a></code>
</dd> <dt>Parameters:</dt> <dd>
<code>b</code> - the byte to be written.</dd> <dt>Throws:</dt> <dd>
<code><a href="ioexception" title="class in java.io">IOException</a></code> - if an I/O error occurs.</dd> </dl> </section><section class="detail" id="write(byte[],int,int)"> <h3>write</h3> <pre class="lang-java" data-language="java">public void write(byte[] b, int off, int len) throws IOException</pre> <div class="block">Writes <code>len</code> bytes from the specified byte array starting at offset <code>off</code> to this buffered output stream. <p> Ordinarily this method stores bytes from the given array into this stream's buffer, flushing the buffer to the underlying output stream as needed. If the requested length is at least as large as this stream's buffer, however, then this method will flush the buffer and write the bytes directly to the underlying output stream. Thus redundant <code>BufferedOutputStream</code>s will not copy data unnecessarily.</p>
</div> <dl class="notes"> <dt>Overrides:</dt> <dd>
<code><a href="filteroutputstream#write(byte%5B%5D,int,int)">write</a></code> in class <code><a href="filteroutputstream" title="class in java.io">FilterOutputStream</a></code>
</dd> <dt>Parameters:</dt> <dd>
<code>b</code> - the data.</dd> <dd>
<code>off</code> - the start offset in the data.</dd> <dd>
<code>len</code> - the number of bytes to write.</dd> <dt>Throws:</dt> <dd>
<code><a href="ioexception" title="class in java.io">IOException</a></code> - if an I/O error occurs.</dd> <dd>
<code><a href="../lang/indexoutofboundsexception" title="class in java.lang">IndexOutOfBoundsException</a></code> - If <code>off</code> is negative, <code>len</code> is negative, or <code>len</code> is greater than <code>b.length - off</code>
</dd> <dt>See Also:</dt> <dd> <ul class="tag-list"> <li><a href="filteroutputstream#write(int)"><code>FilterOutputStream.write(int)</code></a></li> </ul> </dd> </dl> </section><section class="detail" id="flush()"> <h3>flush</h3> <pre class="lang-java" data-language="java">public void flush() throws IOException</pre> <div class="block">Flushes this buffered output stream. This forces any buffered output bytes to be written out to the underlying output stream.</div> <dl class="notes"> <dt>Specified by:</dt> <dd>
<code><a href="flushable#flush()">flush</a></code> in interface <code><a href="flushable" title="interface in java.io">Flushable</a></code>
</dd> <dt>Overrides:</dt> <dd>
<code><a href="filteroutputstream#flush()">flush</a></code> in class <code><a href="filteroutputstream" title="class in java.io">FilterOutputStream</a></code>
</dd> <dt>Throws:</dt> <dd>
<code><a href="ioexception" title="class in java.io">IOException</a></code> - if an I/O error occurs.</dd> <dt>See Also:</dt> <dd> <ul class="tag-list"> <li><a href="filteroutputstream#out"><code>FilterOutputStream.out</code></a></li> </ul> </dd> </dl> </section> </section><div class="_attribution">
<p class="_attribution-p">
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.<br>Documentation extracted from Debian's OpenJDK Development Kit package.<br>Licensed under the GNU General Public License, version 2, with the Classpath Exception.<br>Various third party code in OpenJDK is licensed under different licenses (see Debian package).<br>Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.<br>
<a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/BufferedOutputStream.html" class="_attribution-link">https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/BufferedOutputStream.html</a>
</p>
</div>


</div>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2572770204602497"
data-ad-slot="1992473792"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</section>

</div>
<svg style="display:none">
<symbol id="icon-dir"><svg viewBox="0 0 20 20"><path d="M15 10c0 .3-.305.515-.305.515l-8.56 5.303c-.625.41-1.135.106-1.135-.67V4.853c0-.777.51-1.078 1.135-.67l8.56 5.305S15 9.702 15 10z"/></svg></symbol>
</svg>
</body>
</html>
Loading

0 comments on commit 74678af

Please sign in to comment.