| 接口 | 描述 |
|---|---|
| AclFileAttributeView |
支持读取或更新文件的访问控制列表(ACL)或文件所有者属性的文件属性视图。
|
| AttributeView |
提供与文件系统中的对象相关联的非不透明值的只读或可更新
视图的对象。
|
| BasicFileAttributes |
与文件系统中的文件相关联的基本属性。
|
| BasicFileAttributeView |
文件属性视图,提供许多文件系统通用的
基本文件属性
集的视图。
|
| DosFileAttributes |
与支持旧版“DOS”属性的文件系统中的文件相关联的文件属性。
|
| DosFileAttributeView |
提供传统“DOS”文件属性视图的文件属性视图。
|
| FileAttribute<T> |
封装通过调用
createFile或
createDirectory方法创建新文件或目录时可以原子地设置的文件属性的值的对象。
|
| FileAttributeView |
属性视图,它是与文件系统中的文件相关联的非不透明值的只读或可更新视图。
|
| FileOwnerAttributeView |
支持阅读或更新文件所有者的文件属性视图。
|
| FileStoreAttributeView |
一个属性认为是一个只读或可更新的一个的属性的视图 FileStore 。
|
| GroupPrincipal |
A
UserPrincipal表示
组身份 ,用于确定文件系统中对象的访问权限。
|
| PosixFileAttributes |
与实现便携式操作系统接口(POSIX)系列标准的操作系统使用的文件系统上的文件相关联的文件属性。
|
| PosixFileAttributeView |
文件属性视图,提供通常与实现便携式操作系统接口(POSIX)系列标准的操作系统使用的文件系统上的文件关联的文件属性视图。
|
| UserDefinedFileAttributeView |
文件属性视图,提供文件的用户定义属性(有时称为
扩展属性)的视图 。
|
| UserPrincipal |
A
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 ,定义了访问文件系统(例如消费者设备中通常使用的文件分配表格(FAT))支持的传统“DOS”文件属性的方法。
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.