| 接口 | 描述 |
|---|---|
| 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 描述 AttributeViewCan read or update non-opaque values associated with objects in a file system FileAttributeViewCan read or update file attributes BasicFileAttributeViewCan read or update a basic set of file attributes PosixFileAttributeViewCan read or update POSIX defined file attributes DosFileAttributeViewCan read or update FAT file attributes FileOwnerAttributeViewCan read or update the owner of a file AclFileAttributeViewCan read or update Access Control Lists UserDefinedFileAttributeViewCan read or update user-defined file attributes FileStoreAttributeViewCan 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.