語言

IDosFileAttributes 介面

定義

支援舊有「DOS」屬性的檔案系統中與檔案相關的檔案屬性。

[Android.Runtime.Register("java/nio/file/attribute/DosFileAttributes", "", "Java.Nio.FileNio.Attributes.IDosFileAttributesInvoker", ApiSince=26)]
public interface IDosFileAttributes : IDisposable, Java.Interop.IJavaPeerable, Java.Nio.FileNio.Attributes.IBasicFileAttributes
[<Android.Runtime.Register("java/nio/file/attribute/DosFileAttributes", "", "Java.Nio.FileNio.Attributes.IDosFileAttributesInvoker", ApiSince=26)>]
type IDosFileAttributes = interface
    interface IBasicFileAttributes
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
屬性
實作

備註

支援舊有「DOS」屬性的檔案系統中與檔案相關的檔案屬性。

<b>用法範例:</b>

Path file = ...
               DosFileAttributes attrs = Files.readAttributes(file, DosFileAttributes.class);

在 1.7 版本中加入。

Java 文件 java.nio.file.attribute.DosFileAttributes。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

屬性

名稱 Description
Handle

取得底層 Android 物件的 JNI 值。

(繼承來源 IJavaObject)
IsArchive

讀取 DOS 檔案屬性是否被設定。

IsDirectory

判斷該檔案是否為目錄。

(繼承來源 IBasicFileAttributes)
IsHidden

會判斷 DOS 隱藏屬性是否被設定。

IsOther

判斷該檔案是否既非一般檔案、目錄,也非符號連結。

(繼承來源 IBasicFileAttributes)
IsReadOnly

會判斷 DOS 唯讀屬性是否被設定。

IsRegularFile

判斷該檔案是否為一般檔案。

(繼承來源 IBasicFileAttributes)
IsSymbolicLink

判斷該檔案是否為符號連結。

(繼承來源 IBasicFileAttributes)
IsSystem

會判斷 DOS 系統屬性是否被設定。

JniIdentityHashCode

回傳包裹實例的 java.lang.System.identityHashCode() 值。

(繼承來源 IJavaPeerable)
JniManagedPeerState

管理貴族的狀況。

(繼承來源 IJavaPeerable)
JniObjectReferenceControlBlock

支援舊有「DOS」屬性的檔案系統中與檔案相關的檔案屬性。

(繼承來源 IJavaPeerable)
JniPeerMembers

成員存取與召喚支援。

(繼承來源 IJavaPeerable)
PeerReference

回傳JniObjectReference包裹後的 Java 物件實例。

(繼承來源 IJavaPeerable)

方法

名稱 Description
CreationTime()

回傳創造時間。

(繼承來源 IBasicFileAttributes)
Disposed()

當實例被處理後才被召喚。

(繼承來源 IJavaPeerable)
DisposeUnlessReferenced()

如果沒有未解決的參考資料,則 Dispose()呼叫;否則,則不做任何事。

(繼承來源 IJavaPeerable)
FileKey()

回傳一個唯一識別該檔案的物件,或 null 若無法使用檔案金鑰,則回傳物件。

(繼承來源 IBasicFileAttributes)
Finalized()

當實例完成後才會被通知。

(繼承來源 IJavaPeerable)
LastAccessTime()

回傳最後存取的時間。

(繼承來源 IBasicFileAttributes)
LastModifiedTime()

回傳最後修改的時間。

(繼承來源 IBasicFileAttributes)
SetJniIdentityHashCode(Int32)

將回傳的值設為 JniIdentityHashCode。

(繼承來源 IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates)

支援舊有「DOS」屬性的檔案系統中與檔案相關的檔案屬性。

(繼承來源 IJavaPeerable)
SetPeerReference(JniObjectReference)

將回傳的值設為 PeerReference。

(繼承來源 IJavaPeerable)
Size()

回傳檔案大小(以位元組為單位)。

(繼承來源 IBasicFileAttributes)
UnregisterFromRuntime()

取消註冊此實例,讓執行時不會在未來 Java.Interop.JniRuntime+JniValueManager.PeekValue 的呼叫中回傳該實例。

(繼承來源 IJavaPeerable)

擴充方法

名稱 Description
GetJniTypeName(IJavaPeerable)

取得實例 self類型的 JNI 名稱。

JavaAs<TResult>(IJavaPeerable)

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

JavaCast<TResult>(IJavaObject)

執行 Android 執行時檢查型別轉換。

JavaCast<TResult>(IJavaObject)

支援舊有「DOS」屬性的檔案系統中與檔案相關的檔案屬性。

TryJavaCast<TResult>(IJavaPeerable, TResult)

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

適用於