软件包 | 描述 |
---|---|
java.nio.file |
定义的接口和类的java虚拟机访问文件,文件属性,文件系统。
|
java.nio.file.attribute |
提供对文件和文件系统属性的访问的接口和类。
|
Modifier and Type | Method and Description |
---|---|
static UserPrincipal |
Files.getOwner(Path path, LinkOption... options)
返回文件的所有者。
|
Modifier and Type | Method and Description |
---|---|
static Path |
Files.setOwner(Path path, UserPrincipal owner)
更新文件所有者。
|
Modifier and Type | Interface and Description |
---|---|
interface |
GroupPrincipal
一个
UserPrincipal 代表一组标识,用于确定在一个文件系统对象的访问权限。
|
Modifier and Type | Method and Description |
---|---|
UserPrincipal |
FileOwnerAttributeView.getOwner()
读取文件所有者。
|
abstract UserPrincipal |
UserPrincipalLookupService.lookupPrincipalByName(String name)
按名称查找用户名称。
|
UserPrincipal |
PosixFileAttributes.owner()
返回文件的所有者。
|
UserPrincipal |
AclEntry.principal()
返回主成分。
|
Modifier and Type | Method and Description |
---|---|
void |
FileOwnerAttributeView.setOwner(UserPrincipal owner)
更新文件所有者。
|
AclEntry.Builder |
AclEntry.Builder.setPrincipal(UserPrincipal who)
设置此生成器的主成分。
|
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.