aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/readablestreambyobreader
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/readablestreambyobreader')
-rw-r--r--files/ja/web/api/readablestreambyobreader/cancel/index.html71
-rw-r--r--files/ja/web/api/readablestreambyobreader/closed/index.html53
-rw-r--r--files/ja/web/api/readablestreambyobreader/index.html72
-rw-r--r--files/ja/web/api/readablestreambyobreader/read/index.html73
-rw-r--r--files/ja/web/api/readablestreambyobreader/readablestreambyobreader/index.html70
-rw-r--r--files/ja/web/api/readablestreambyobreader/releaselock/index.html68
6 files changed, 407 insertions, 0 deletions
diff --git a/files/ja/web/api/readablestreambyobreader/cancel/index.html b/files/ja/web/api/readablestreambyobreader/cancel/index.html
new file mode 100644
index 0000000000..b49ad2f01e
--- /dev/null
+++ b/files/ja/web/api/readablestreambyobreader/cancel/index.html
@@ -0,0 +1,71 @@
+---
+title: ReadableStreamBYOBReader.cancel()
+slug: Web/API/ReadableStreamBYOBReader/cancel
+tags:
+ - API
+ - Experimental
+ - Method
+ - ReadableStreamBYOBReader
+ - Reference
+ - Streams
+ - cancel
+translation_of: Web/API/ReadableStreamBYOBReader/cancel
+---
+<div>{{draft}}{{SeeCompatTable}}{{APIRef("Streams")}}</div>
+
+<p class="summary"><span class="seoSummary">{{domxref("ReadableStreamBYOBReader")}} インターフェイスの <strong><code>cancel()</code></strong> メソッドはストリームをキャンセルし、コンシューマーがストリームに興味を失ったことを通知します。 提供された <code>reason</code> パラメーターは、基になるソースに与えられ、使用する場合もしない場合もあります。</span></p>
+
+<div class="note">
+<p><strong>注</strong>:リーダーがアクティブな場合、<code>cancel()</code> メソッドは、関連するストリームの場合({{domxref("ReadableStream.cancel()")}})と同じように振る舞います。</p>
+</div>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">var <em>promise</em> = <em>readableStreamBYOBReader</em>.cancel(<em>reason</em>);</pre>
+
+<h3 id="Parameters" name="Parameters">パラメーター</h3>
+
+<dl>
+ <dt>reason</dt>
+ <dd>人間が読むことができるキャンセルの理由を提供する {{domxref("DOMString")}}。</dd>
+</dl>
+
+<h3 id="Return_value" name="Return_value">戻り値</h3>
+
+<p>{{jsxref("Promise")}}。 <code>reason</code> パラメーターで指定された値で満たされます。</p>
+
+<h3 id="Exceptions" name="Exceptions">例外</h3>
+
+<dl>
+ <dt>TypeError</dt>
+ <dd>ソースオブジェクトが <code>ReadableStreamBYOBReader</code> ではないか、ストリームに所有者がいません。</dd>
+</dl>
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<p>未定。</p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">状態</th>
+ <th scope="col">コメント</th>
+ </tr>
+ <tr>
+ <td>{{SpecName("Streams","#byob-reader-cancel","cancel()")}}</td>
+ <td>{{Spec2('Streams')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div class="hidden">
+<p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+</div>
+
+<p>{{Compat("api.ReadableStreamBYOBReader.cancel")}}</p>
diff --git a/files/ja/web/api/readablestreambyobreader/closed/index.html b/files/ja/web/api/readablestreambyobreader/closed/index.html
new file mode 100644
index 0000000000..0ade844043
--- /dev/null
+++ b/files/ja/web/api/readablestreambyobreader/closed/index.html
@@ -0,0 +1,53 @@
+---
+title: ReadableStreamBYOBReader.closed
+slug: Web/API/ReadableStreamBYOBReader/closed
+tags:
+ - API
+ - Experimental
+ - Property
+ - ReadableStreamBYOBReader
+ - Reference
+ - Streams
+ - closed
+translation_of: Web/API/ReadableStreamBYOBReader/closed
+---
+<div>{{draft}}{{SeeCompatTable}}{{APIRef("Streams")}}</div>
+
+<p class="summary"><span class="seoSummary">{{domxref("ReadableStreamBYOBReader")}} インターフェイスの <strong><code>closed</code></strong> 読み取り専用プロパティは、ストリームが閉じられた場合、またはリーダーのロックが解除された場合に満たし、ストリームがエラーの場合は拒否する promise を返します。</span></p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox"><var><code>var <em>closed</em> = </code>readableStreamBYOBReader</var>.closed;</pre>
+
+<h3 id="Value" name="Value">値</h3>
+
+<p>{{jsxref("Promise")}}。</p>
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<p>未定。</p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">状態</th>
+ <th scope="col">コメント</th>
+ </tr>
+ <tr>
+ <td>{{SpecName("Streams","#byob-reader-closed","closed")}}</td>
+ <td>{{Spec2('Streams')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div class="hidden">
+<p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+</div>
+
+<p>{{Compat("api.ReadableStreamBYOBReader.closed")}}</p>
diff --git a/files/ja/web/api/readablestreambyobreader/index.html b/files/ja/web/api/readablestreambyobreader/index.html
new file mode 100644
index 0000000000..4ec50c0a4e
--- /dev/null
+++ b/files/ja/web/api/readablestreambyobreader/index.html
@@ -0,0 +1,72 @@
+---
+title: ReadableStreamBYOBReader
+slug: Web/API/ReadableStreamBYOBReader
+tags:
+ - API
+ - Experimental
+ - Fetch
+ - Interface
+ - ReadableStreamBYOBReader
+ - Reference
+ - Streams
+translation_of: Web/API/ReadableStreamBYOBReader
+---
+<p>{{APIRef("Streams")}}{{SeeCompatTable}}</p>
+
+<p><span class="seoSummary"><a href="/ja/docs/Web/API/Streams_API">Streams API</a> の <code>ReadableStreamBYOBReader</code> インターフェイスは、開発者が提供するストリームデータ(カスタムの {{domxref("ReadableStream.ReadableStream","ReadableStream()")}} コンストラクターなど)の読み取りに使用できる BYOB("bring your own buffer")リーダーを表します。</span></p>
+
+<h2 id="Constructor" name="Constructor">コンストラクター</h2>
+
+<dl>
+ <dt>{{domxref("ReadableStreamBYOBReader.ReadableStreamBYOBReader", "ReadableStreamBYOBReader()")}}</dt>
+ <dd><code>ReadableStreamBYOBReader</code> オブジェクトのインスタンスを作成して返します。</dd>
+</dl>
+
+<h2 id="Properties" name="Properties">プロパティ</h2>
+
+<dl>
+ <dt>{{domxref("ReadableStreamBYOBReader.closed")}} {{readonlyInline}}</dt>
+ <dd>ストリーミングプロセスの終了に応答するコードを記述できます。 ストリームが閉じられた場合、またはリーダーのロックが解除された場合に満たす promise  を返します。 ストリームがエラーの場合は拒否します。</dd>
+</dl>
+
+<h2 id="Methods" name="Methods">メソッド</h2>
+
+<dl>
+ <dt>{{domxref("ReadableStreamBYOBReader.cancel()")}}</dt>
+ <dd>ストリームをキャンセルし、コンシューマーがストリームに興味を失ったことを通知します。 提供された <code>reason</code> 引数は、基になるソースに与えられ、使用する場合もしない場合もあります。</dd>
+ <dt>{{domxref("ReadableStreamBYOBReader.read()")}}</dt>
+ <dd>ストリームの内部キュー内の次のチャンクへのアクセスを提供する promise を返します。</dd>
+ <dt>{{domxref("ReadableStreamBYOBReader.releaseLock()")}}</dt>
+ <dd>ストリームのリーダーのロックを解除します。</dd>
+</dl>
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<p>未定。</p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">状態</th>
+ <th scope="col">コメント</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('Streams','#byob-reader-class','ReadableStreamBYOBReader')}}</td>
+ <td>{{Spec2('Streams')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div>
+<div class="hidden">
+<p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+</div>
+
+<p>{{Compat("api.ReadableStreamBYOBReader")}}</p>
+</div>
diff --git a/files/ja/web/api/readablestreambyobreader/read/index.html b/files/ja/web/api/readablestreambyobreader/read/index.html
new file mode 100644
index 0000000000..5f1810189d
--- /dev/null
+++ b/files/ja/web/api/readablestreambyobreader/read/index.html
@@ -0,0 +1,73 @@
+---
+title: ReadableStreamBYOBReader.read()
+slug: Web/API/ReadableStreamBYOBReader/read
+tags:
+ - API
+ - Experimental
+ - Method
+ - ReadableStreamBYOBReader
+ - Reference
+ - Streams
+ - read
+translation_of: Web/API/ReadableStreamBYOBReader/read
+---
+<div>{{draft}}{{SeeCompatTable}}{{APIRef("Streams")}}</div>
+
+<p class="summary"><span class="seoSummary">{{domxref("ReadableStreamBYOBReader")}} インターフェイスの <strong><code>read()</code></strong> メソッドは、バイトストリームの内部キュー内の次のチャンクへのアクセスを提供する promise を返します。</span></p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">var <em>promise</em> = <em>readableStreamBYOBReader</em>.read(<em>view</em>);</pre>
+
+<h3 id="Parameters" name="Parameters">パラメーター</h3>
+
+<dl>
+ <dt>view</dt>
+ <dd>読み込み先のビュー。</dd>
+</dl>
+
+<h3 id="Return_value" name="Return_value">戻り値</h3>
+
+<p>{{jsxref("Promise")}}。 ストリームの状態に応じて結果を充足/拒否します。 異なる可能性は次のとおりです。</p>
+
+<ul>
+ <li>チャンクが使用可能な場合、<code>{ value: theChunk, done: false }</code> の形式のオブジェクトで promise が満たされます。</li>
+ <li>ストリームが閉じられると、<code>{ value: undefined, done: true }</code> という形式のオブジェクトで promise が満たされます。</li>
+ <li>ストリームがエラーになると、関連するエラーで promise が拒否されます。</li>
+</ul>
+
+<h3 id="Exceptions" name="Exceptions">例外</h3>
+
+<dl>
+ <dt>TypeError</dt>
+ <dd>ソースオブジェクトが <code>ReadableStreamBYOBReader</code> ではない、ストリームに所有者がない、ビューがオブジェクトではない、または切り離されている、またはビューの長さが 0 である。</dd>
+</dl>
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<p>未定。</p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">状態</th>
+ <th scope="col">コメント</th>
+ </tr>
+ <tr>
+ <td>{{SpecName("Streams","#byob-reader-read","read()")}}</td>
+ <td>{{Spec2('Streams')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div class="hidden">
+<p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+</div>
+
+<p>{{Compat("api.ReadableStreamBYOBReader.read")}}</p>
diff --git a/files/ja/web/api/readablestreambyobreader/readablestreambyobreader/index.html b/files/ja/web/api/readablestreambyobreader/readablestreambyobreader/index.html
new file mode 100644
index 0000000000..7fb3284433
--- /dev/null
+++ b/files/ja/web/api/readablestreambyobreader/readablestreambyobreader/index.html
@@ -0,0 +1,70 @@
+---
+title: ReadableStreamBYOBReader.ReadableStreamBYOBReader()
+slug: Web/API/ReadableStreamBYOBReader/ReadableStreamBYOBReader
+tags:
+ - API
+ - Constructor
+ - Experimental
+ - ReadableStreamBYOBReader
+ - Reference
+ - Streams
+translation_of: Web/API/ReadableStreamBYOBReader/ReadableStreamBYOBReader
+---
+<div>{{draft}}{{SeeCompatTable}}{{APIRef("Streams")}}</div>
+
+<p class="summary"><span class="seoSummary"><strong><code>ReadableStreamBYOBReader()</code></strong> コンストラクターは、<code>ReadableStreamBYOBReader</code> オブジェクトのインスタンスを作成して返します。</span></p>
+
+<div class="note">
+<p><strong>注</strong>: 通常、このコンストラクターを手動で使用することはありません。 代わりに、{{domxref("ReadableStream.getReader()")}} メソッドを使用します。</p>
+</div>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">var <em>readableStreamBYOBReader</em> = new ReadableStreamBYOBReader(<em>stream</em>);</pre>
+
+<h3 id="Parameters" name="Parameters">パラメーター</h3>
+
+<dl>
+ <dt>stream</dt>
+ <dd>読み取られる {{domxref("ReadableStream")}}。</dd>
+</dl>
+
+<h3 id="Return_value" name="Return_value">戻り値</h3>
+
+<p>{{domxref("ReadableStreamBYOBReader")}} オブジェクトのインスタンス。</p>
+
+<h3 id="Exceptions" name="Exceptions">例外</h3>
+
+<dl>
+ <dt>TypeError</dt>
+ <dd>指定された <code>stream</code> パラメーターが {{domxref("ReadableStream")}} ではないか、別のリーダーによる読み取りのために既にロックされているか、そのストリームコントローラーが {{domxref("ReadableByteStreamController")}} ではありません。</dd>
+</dl>
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<p>未定。</p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">状態</th>
+ <th scope="col">コメント</th>
+ </tr>
+ <tr>
+ <td>{{SpecName("Streams","#byob-reader-constructor","ReadableStreamBYOBReader()")}}</td>
+ <td>{{Spec2('Streams')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div class="hidden">
+<p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+</div>
+
+<p>{{Compat("api.ReadableStreamBYOBReader.ReadableStreamBYOBReader")}}</p>
diff --git a/files/ja/web/api/readablestreambyobreader/releaselock/index.html b/files/ja/web/api/readablestreambyobreader/releaselock/index.html
new file mode 100644
index 0000000000..2ab5569d2f
--- /dev/null
+++ b/files/ja/web/api/readablestreambyobreader/releaselock/index.html
@@ -0,0 +1,68 @@
+---
+title: ReadableStreamBYOBReader.releaseLock()
+slug: Web/API/ReadableStreamBYOBReader/releaseLock
+tags:
+ - API
+ - Experimental
+ - Method
+ - ReadableStreamBYOBReader
+ - Reference
+ - Streams
+ - releaseLock
+translation_of: Web/API/ReadableStreamBYOBReader/releaseLock
+---
+<div>{{draft}}{{SeeCompatTable}}{{APIRef("Streams")}}</div>
+
+<p class="summary"><span class="seoSummary">{{domxref("ReadableStreamBYOBReader")}} インターフェイスの <strong><code>releaseLock()</code></strong> メソッドは、ストリーム上のリーダーのロックを解除します。 ロックを解除すると、リーダーはアクティブではなくなります。</span></p>
+
+<p>ロックを解除したときに関連するストリームにエラーが発生した場合、リーダーはその後同様にエラーが発生したようになります。 そうでない場合、リーダーは閉じた状態になります。</p>
+
+<p>リーダーのロックは、保留中の読み取り要求が残っている間、つまり、リーダーの {{domxref("ReadableStreamBYOBReader.read()")}} メソッドによって返された promise が終了していない場合、解除できません。 これにより、<code>TypeError</code> がスローされます。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox"><em>readableStreamBYOBReader</em>.releaseLock();</pre>
+
+<h3 id="Parameters" name="Parameters">パラメーター</h3>
+
+<p>なし。</p>
+
+<h3 id="Return_value" name="Return_value">戻り値</h3>
+
+<p><code>undefined</code>。</p>
+
+<h3 id="Exceptions" name="Exceptions">例外</h3>
+
+<dl>
+ <dt>TypeError</dt>
+ <dd>ソースオブジェクトが <code>ReadableStreamBYOBReader</code> でないか、読み取り要求が保留中です。</dd>
+</dl>
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<p>未定。</p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">状態</th>
+ <th scope="col">コメント</th>
+ </tr>
+ <tr>
+ <td>{{SpecName("Streams","#byob-reader-release-lock","releaseLock()")}}</td>
+ <td>{{Spec2('Streams')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div class="hidden">
+<p>The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+</div>
+
+<p>{{Compat("api.ReadableStreamBYOBReader.releaseLock")}}</p>