接口 | 描述 |
---|---|
AclFileAttributeView |
一个支持读取或更新文件的访问控制列表(ACL)或文件属性查看文件的所有者属性。
|
AttributeView |
一个对象,提供非不透明值与文件系统对象相关联的只读或可更新的视图。
|
BasicFileAttributes |
与文件系统中的文件相关的基本属性。
|
BasicFileAttributeView |
提供一个视图,它提供了一个常见的许多文件系统的基本集合的文件属性视图。
|
DosFileAttributes |
与支持传统“拒绝服务”属性的文件系统中的文件相关的文件属性。
|
DosFileAttributeView |
提供一个视图的文件属性视图,它提供了一个遗留的“拒绝服务”文件属性的视图。
|
FileAttribute<T> |
一个对象封装的文件的属性,可以设置自动创建一个新文件或目录时通过调用
createFile 或
createDirectory 方法的价值。
|
FileAttributeView |
一个属性的观点,是非不透明值与文件系统中的文件的只读或可更新的视图相关。
|
FileOwnerAttributeView |
支持读取或更新文件所有者的文件属性视图。
|
FileStoreAttributeView |
一个属性的观点,是一
FileStore 属性只读或可更新的视图。
|
GroupPrincipal |
一个
UserPrincipal 代表一组标识,用于确定在一个文件系统对象的访问权限。
|
PosixFileAttributes |
对操作系统实现可移植的操作系统接口使用的文件系统的文件相关联的文件属性(POSIX)系列标准。
|
PosixFileAttributeView |
文件属性的观点,提供了常用的操作系统,实现了可移植的操作系统接口使用的文件系统的文件关联的视图文件属性(POSIX)系列标准。
|
UserDefinedFileAttributeView |
提供一个文件的用户定义属性的视图的文件属性视图,有时称为扩展属性。
|
UserPrincipal |
一个
Principal 表示用来确定在一个文件系统对象的访问权限的身份。
|
类 | 描述 |
---|---|
AclEntry |
一个访问控制列表(ACL)进入。
|
AclEntry.Builder |
建造
AclEntry 对象。
|
FileTime |
表示一个文件的时间戳属性的值。
|
PosixFilePermissions |
这类方法都是静态的,对操作对象的集合
PosixFilePermission 。
|
UserPrincipalLookupService |
一个查找用户和组校长的对象。
|
Enum | 描述 |
---|---|
AclEntryFlag |
定义的ACL
entry 旗分的旗帜。
|
AclEntryPermission |
定义使用的ACL
entry 权限组件的权限。
|
AclEntryType |
一个访问控制条目类型安全枚举类型。
|
PosixFilePermission |
定义了用于与
permissions 属性位。
|
异常 | 描述 |
---|---|
UserPrincipalNotFoundException |
检查异常时抛出
UserPrincipal 失败查找因为主体不存在。
|
Attribute views 描述 AttributeView
Can read or update non-opaque values associated with objects in a file system FileAttributeView
Can read or update file attributes BasicFileAttributeView
Can read or update a basic set of file attributes PosixFileAttributeView
Can read or update POSIX defined file attributes DosFileAttributeView
Can read or update FAT file attributes FileOwnerAttributeView
Can read or update the owner of a file AclFileAttributeView
Can read or update Access Control Lists UserDefinedFileAttributeView
Can read or update user-defined file attributes FileStoreAttributeView
Can read or update file system attributes
属性视图提供了非不透明值,只读或可更新的视图或元数据与文件系统中的对象相关联的。的FileAttributeView
接口由其他几个界面,视图文件属性的具体设置扩展。FileAttributeViews
援引Files.getFileAttributeView(java.nio.file.Path, java.lang.Class<V>, java.nio.file.LinkOption...)
方法用以确定所需的视图类型标记选择。视图也可以通过名称来标识。的FileStoreAttributeView
接口提供了访问文件存储属性。一个FileStoreAttributeView
给定类型是通过调用FileStore.getFileStoreAttributeView(java.lang.Class<V>)
方法得到的。
的BasicFileAttributeView
类定义了读取和更新,许多文件系统文件属性的基本设置方法。
PosixFileAttributeView
接口扩展的BasicFileAttributeView
定义方法来访问文件属性的文件系统和操作系统,实现了可移植的操作系统接口(POSIX)家庭常用标准。
的DosFileAttributeView
类扩展BasicFileAttributeView
定义方法来访问遗留下来的“DOS”属性的文件支持的文件系统如文件分配表(FAT),消费者常用的设备。
AclFileAttributeView
类定义的读写访问控制列表(ACL)文件属性的方法。该文件属性查看使用ACL模型是基于定义的 RFC 3530: Network File System (NFS) version 4 Protocol模型。
除了属性视图外,这个软件包还定义了访问属性时使用的类和接口:
UserPrincipal
和GroupPrincipal
接口代表一种身份和群体认同。UserPrincipalLookupService
接口定义的方法来查找用户或组的校长。FileAttribute
接口表示的属性值的情况下,属性值必须设置自动创建文件系统中的一个对象时。除非另有说明,通过null实参构造函数或方法的任何类或接口在这个包会导致NullPointerException
被。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.