diff options
Diffstat (limited to 'files/ja/mozilla/tech/xpcom/reference/components/nslocalfile/index.html')
-rw-r--r-- | files/ja/mozilla/tech/xpcom/reference/components/nslocalfile/index.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/files/ja/mozilla/tech/xpcom/reference/components/nslocalfile/index.html b/files/ja/mozilla/tech/xpcom/reference/components/nslocalfile/index.html new file mode 100644 index 0000000000..2b7872b2b8 --- /dev/null +++ b/files/ja/mozilla/tech/xpcom/reference/components/nslocalfile/index.html @@ -0,0 +1,41 @@ +--- +title: nsLocalFile +slug: Mozilla/Tech/XPCOM/Reference/Components/nsLocalFile +tags: + - Components + - 'Components:Frozen' + - XPCOM + - XPCOM API Reference +translation_of: Mozilla/Tech/XPCOM/Reference/Components/nsLocalFile +--- +<p>« <a href="/ja/docs/XPCOM_API_Reference">XPCOM API Reference</a></p> + +<h3 id=".E8.A6.81.E7.B4.84" name=".E8.A6.81.E7.B4.84">要約</h3> + +<p><code><a href="ja/NsILocalFile">nsILocalFile</a></code> を実装するコンポーネント。</p> + +<dl> + <dt>Class ID</dt> + <dd><code>2e23e220-60be-11d3-8c4a-000064657374</code></dd> + <dt>ContractID</dt> + <dd><code>@mozilla.org/file/local;1</code></dd> +</dl> + +<h3 id=".E3.82.B5.E3.83.9D.E3.83.BC.E3.83.88.E3.81.95.E3.82.8C.E3.81.9F.E3.82.A4.E3.83.B3.E3.82.BF.E3.83.95.E3.82.A7.E3.83.BC.E3.82.B9" name=".E3.82.B5.E3.83.9D.E3.83.BC.E3.83.88.E3.81.95.E3.82.8C.E3.81.9F.E3.82.A4.E3.83.B3.E3.82.BF.E3.83.95.E3.82.A7.E3.83.BC.E3.82.B9">サポートされたインタフェース</h3> + +<p><code><a href="ja/NsILocalFile">nsILocalFile</a></code>, <code><a href="ja/NsIFile">nsIFile</a></code></p> + +<h3 id=".E3.82.B3.E3.83.A1.E3.83.B3.E3.83.88" name=".E3.82.B3.E3.83.A1.E3.83.B3.E3.83.88">コメント</h3> + +<p>このコンポーネントは XPCOM コンポーネントマネージャを通してアクセスします。</p> + +<h3 id=".E3.82.B3.E3.83.BC.E3.83.89.E4.BE.8B" name=".E3.82.B3.E3.83.BC.E3.83.89.E4.BE.8B">コード例</h3> + +<pre>function getFileSize(path) { + var file = + Components.classes["@mozilla.org/file/local;1"]. + createInstance(Components.interfaces.nsILocalFile); + file.initWithPath(path); + return file.fileSize; +} +</pre> |