aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/file/index.html
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-12-27 21:32:30 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2022-01-06 20:42:33 +0900
commit4e6ac017cdd1096518ad80347b6171cfd0cbd5de (patch)
tree99a36c540544c0636e39e4e78d1d5434751090fe /files/ja/web/api/file/index.html
parentf360338860b41a2f6e823ea2b5af59cfb7bdb3a6 (diff)
downloadtranslated-content-4e6ac017cdd1096518ad80347b6171cfd0cbd5de.tar.gz
translated-content-4e6ac017cdd1096518ad80347b6171cfd0cbd5de.tar.bz2
translated-content-4e6ac017cdd1096518ad80347b6171cfd0cbd5de.zip
Web/API/File 以下を変換準備
Diffstat (limited to 'files/ja/web/api/file/index.html')
-rw-r--r--files/ja/web/api/file/index.html97
1 files changed, 0 insertions, 97 deletions
diff --git a/files/ja/web/api/file/index.html b/files/ja/web/api/file/index.html
deleted file mode 100644
index d9fd663e3a..0000000000
--- a/files/ja/web/api/file/index.html
+++ /dev/null
@@ -1,97 +0,0 @@
----
-title: File
-slug: Web/API/File
-tags:
- - API
- - File API
- - Interface
- - Reference
- - Web
-translation_of: Web/API/File
----
-<div>{{APIRef}}</div>
-
-<p><strong><code>File</code></strong> インターフェイスは、ファイルについての情報を提供したり、ウェブページ内の JavaScript からその内容にアクセスできるようにしたりします。</p>
-
-<p><code>File</code> オブジェクトは通常、 {{HTMLElement("input")}} 要素を使用してファイルを選択した結果として返される {{DOMxRef("FileList")}} オブジェクト、ドラッグ&ドロップ操作の {{DOMxRef("DataTransfer")}} オブジェクト、または {{DOMxRef("HTMLCanvasElement")}} 上の <code>mozGetAsFile()</code> API から取得します。</p>
-
-<p><code>File</code> オブジェクトは特別な種類の {{domxref("Blob")}} オブジェクトであり、 Blob が利用できる場面ではどこでも利用できます。特に、{{DOMxRef("FileReader")}}、{{DOMxRef("URL.createObjectURL()")}}、{{DOMxRef("ImageBitmapFactories.createImageBitmap()", "createImageBitmap()")}}、{{DOMxRef("XMLHttpRequest", "", "send()")}} は、<code>Blob</code> と <code>File</code> の両方を受け付けます。</p>
-
-<p>詳しい情報や例は、<a href="/ja/docs/Web/API/File/Using_files_from_web_applications">ウェブアプリケーションからのファイルの使用</a> を参照してください。</p>
-
-<p>{{InheritanceDiagram}}</p>
-
-<h2 id="Constructor" name="Constructor">コンストラクター</h2>
-
-<dl>
- <dt>{{DOMxRef("File.File", "File()")}}</dt>
- <dd>新しく構築された <code>File</code> オブジェクトを返します。</dd>
-</dl>
-
-<h2 id="Instance_properties" name="Instance_properties">インスタンスプロパティ</h2>
-
-<dl>
- <dt>{{DOMxRef("File.prototype.lastModified")}} {{ReadOnlyInline}}</dt>
- <dd>ファイルの最終更新時刻を、 UNIX 元期 (1970年1月1日深夜) からの経過ミリ秒数で返します。</dd>
- <dt>{{DOMxRef("File.prototype.lastModifiedDate")}} {{Deprecated_Inline}} {{ReadOnlyInline}}</dt>
- <dd><code>File</code> オブジェクトが参照しているファイルの最終更新時刻の {{JSxRef("Date")}} を返します。</dd>
- <dt>{{DOMxRef("File.prototype.name")}}{{ReadOnlyInline}}</dt>
- <dd><code>File</code> オブジェクトが参照しているファイルの名前を返します。</dd>
- <dt>{{DOMxRef("File.prototype.webkitRelativePath")}} {{Non-standard_Inline}} {{ReadOnlyInline}}</dt>
- <dd>{{DOMxRef("File")}} の URL の相対パスを返します。</dd>
-</dl>
-
-<p><code>File</code> は {{DOMxRef("Blob")}} を実装しているので、以下のようなプロパティも利用できます。</p>
-
-<dl>
- <dt>{{DOMxRef("File.prototype.size")}} {{ReadOnlyInline}}</dt>
- <dd>ファイルのサイズをバイト単位で返します。</dd>
- <dt>{{DOMxRef("File.prototype.type")}} {{ReadOnlyInline}}</dt>
- <dd>ファイルの <a href="/ja/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME</a> タイプを返します。</dd>
-</dl>
-
-<h2 id="Instance_methods" name="Instance_methods">インスタンスメソッド</h2>
-
-<p><em><code>File</code> インターフェイスはメソッドを定義せず、{{DOMxRef("Blob")}} インターフェイスからメソッドを継承しています。</em></p>
-
-<dl>
- <dt>{{DOMxRef("Blob.prototype.slice()", "Blob.prototype.slice([start[, end[, contentType]]])")}}</dt>
- <dd>ソース <code>Blob</code> の指定したバイト数の範囲のデータを含む新しい <code>Blob</code> オブジェクトを返します。</dd>
- <dt>{{DOMxRef("Blob.prototype.stream()")}}</dt>
- <dd><code>File</code> を {{DOMxRef("ReadableStream")}} に変換し、<code>File</code> の内容を読み込めるようにします。</dd>
- <dt>{{DOMxRef("Blob.prototype.text()")}}</dt>
- <dd><code>File</code> をストリームに変換し、最後まで読み込みます。これは、{{DOMxRef("USVString")}} (テキスト) で解決するプロミスを返します。</dd>
- <dt>{{DOMxRef("Blob.prototype.arrayBuffer()")}}</dt>
- <dd><code>File</code> をストリームに変換し、最後まで読み込みます。 {{DOMxRef("ArrayBuffer")}} で解決するプロミスを返します。</dd>
-</dl>
-
-<h2 id="Specifications" name="Specifications">仕様書</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">仕様書</th>
- <th scope="col">状態</th>
- <th scope="col">備考</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('File API')}}</td>
- <td>{{Spec2('File API')}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-
-<p>{{Compat("api.File")}}</p>
-
-<h2 id="See_also" name="See_also">関連情報</h2>
-
-<ul>
- <li><a href="/ja/docs/Web/API/File/Using_files_from_web_applications">ウェブアプリケーションからのファイルの使用</a></li>
- <li>{{domxref("FileReader")}}</li>
- <li><a href="/ja/docs/Extensions/Using_the_DOM_File_API_in_chrome_code">DOM File API を chrome code で使う</a> (Firefox アドオンのような Gecko で実行される特権コード向け)</li>
-</ul>