Share via


IPosixFileAttributes 介面

定義

與檔案系統上實作可攜式作業系統介面 (POSIX) 系列標準之檔案系統上檔案相關聯的檔案屬性。

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

備註

與檔案系統上實作可攜式作業系統介面 (POSIX) 系列標準之檔案系統上檔案相關聯的檔案屬性。

藉由叫用 PosixFileAttributeViewPosixFileAttributeView#readAttributes readAttributes 方法來擷取檔案的 POSIX 屬性。

已在 1.7 中新增。

java.nio.file.attribute.PosixFileAttributes JAVA 檔。

此頁面的部分是根據 原始碼專案所建立和共用的工作進行修改,並根據中所述的詞彙使用。

屬性

Handle

取得基礎 Android 物件的 JNI 值。

(繼承來源 IJavaObject)
IsDirectory

與檔案系統上實作可攜式作業系統介面 (POSIX) 系列標準之檔案系統上檔案相關聯的檔案屬性。

(繼承來源 IBasicFileAttributes)
IsOther

與檔案系統上實作可攜式作業系統介面 (POSIX) 系列標準之檔案系統上檔案相關聯的檔案屬性。

(繼承來源 IBasicFileAttributes)
IsRegularFile

與檔案系統上實作可攜式作業系統介面 (POSIX) 系列標準之檔案系統上檔案相關聯的檔案屬性。

(繼承來源 IBasicFileAttributes)
IsSymbolicLink

與檔案系統上實作可攜式作業系統介面 (POSIX) 系列標準之檔案系統上檔案相關聯的檔案屬性。

(繼承來源 IBasicFileAttributes)
JniIdentityHashCode

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

(繼承來源 IJavaPeerable)
JniManagedPeerState

受控對等的狀態。

(繼承來源 IJavaPeerable)
JniPeerMembers

成員存取和調用支援。

(繼承來源 IJavaPeerable)
PeerReference

JniObjectReference 回已包裝 JAVA 物件實例的 。

(繼承來源 IJavaPeerable)

方法

CreationTime()

傳回建立時間。

(繼承來源 IBasicFileAttributes)
Disposed()

在處置實例時呼叫。

(繼承來源 IJavaPeerable)
DisposeUnlessReferenced()

如果沒有這個實例的未完成參考,則呼叫 Dispose() ,否則不會執行任何動作。

(繼承來源 IJavaPeerable)
FileKey()

傳回可唯一識別指定檔案的物件,如果檔案索引鍵無法使用,則 null 傳回 。

(繼承來源 IBasicFileAttributes)
Finalized()

實例完成時呼叫。

(繼承來源 IJavaPeerable)
Group()

傳回檔案的群組擁有者。

LastAccessTime()

傳回上次存取的時間。

(繼承來源 IBasicFileAttributes)
LastModifiedTime()

傳回上次修改的時間。

(繼承來源 IBasicFileAttributes)
Owner()

傳回檔案的擁有者。

Permissions()

傳回檔案的許可權。

SetJniIdentityHashCode(Int32)

設定 所 JniIdentityHashCode 傳回的值。

(繼承來源 IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates)

與檔案系統上實作可攜式作業系統介面 (POSIX) 系列標準之檔案系統上檔案相關聯的檔案屬性。

(繼承來源 IJavaPeerable)
SetPeerReference(JniObjectReference)

設定 所 PeerReference 傳回的值。

(繼承來源 IJavaPeerable)
Size()

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

(繼承來源 IBasicFileAttributes)
UnregisterFromRuntime()

取消註冊此實例,讓執行時間不會從未來的 Java.Interop.JniRuntime+JniValueManager.PeekValue 調用傳回它。

(繼承來源 IJavaPeerable)

擴充方法

JavaCast<TResult>(IJavaObject)

執行 Android 執行時間檢查的類型轉換。

JavaCast<TResult>(IJavaObject)

與檔案系統上實作可攜式作業系統介面 (POSIX) 系列標準之檔案系統上檔案相關聯的檔案屬性。

GetJniTypeName(IJavaPeerable)

與檔案系統上實作可攜式作業系統介面 (POSIX) 系列標準之檔案系統上檔案相關聯的檔案屬性。

適用於