Package | Description |
---|---|
java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
java.nio.file.attribute |
Interfaces and classes providing access to file and file system attributes.
|
Modifier and Type | Method | Description |
---|---|---|
static UserPrincipal |
Files.getOwner(Path path,
LinkOption... options) |
Returns the owner of a file.
|
Modifier and Type | Method | Description |
---|---|---|
static Path |
Files.setOwner(Path path,
UserPrincipal owner) |
Updates the file owner.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
GroupPrincipal |
A
UserPrincipal representing a group identity, used to
determine access rights to objects in a file system. |
Modifier and Type | Method | Description |
---|---|---|
UserPrincipal |
FileOwnerAttributeView.getOwner() |
Read the file owner.
|
abstract UserPrincipal |
UserPrincipalLookupService.lookupPrincipalByName(String name) |
Lookup a user principal by name.
|
UserPrincipal |
PosixFileAttributes.owner() |
Returns the owner of the file.
|
UserPrincipal |
AclEntry.principal() |
Returns the principal component.
|
Modifier and Type | Method | Description |
---|---|---|
void |
FileOwnerAttributeView.setOwner(UserPrincipal owner) |
Updates the file owner.
|
AclEntry.Builder |
AclEntry.Builder.setPrincipal(UserPrincipal who) |
Sets the principal component of this builder.
|
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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps