Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PosixFileAttributes extends BasicFileAttributes
File attributes associated with files on file systems used by operating systems that implement the Portable Operating System Interface (POSIX) family of standards.
The POSIX attributes of a file are retrieved using a PosixFileAttributeView
by invoking its readAttributes
method.
Attributes.readPosixFileAttributes(java.nio.file.FileRef, java.nio.file.LinkOption...)
Modifier and Type | Method and Description |
---|---|
GroupPrincipal |
group()
Returns the group owner of the file. |
UserPrincipal |
owner()
Returns the owner of the file. |
Set<PosixFilePermission> |
permissions()
Returns the permissions of the file. |
Methods inherited from interface java.nio.file.attribute.BasicFileAttributes |
---|
creationTime, fileKey, isDirectory, isOther, isRegularFile, isSymbolicLink, lastAccessTime, lastModifiedTime, size |
Method Detail |
---|
UserPrincipal owner()
FileOwnerAttributeView.setOwner(java.nio.file.attribute.UserPrincipal)
GroupPrincipal group()
PosixFileAttributeView.setGroup(java.nio.file.attribute.GroupPrincipal)
Set<PosixFilePermission> permissions()
PosixFilePermission
elements. The returned set is a
copy of the file permissions and is modifiable. This allows the result
to be modified and passed to the setPermissions
method to update the file's permissions.
PosixFileAttributeView.setPermissions(java.util.Set)
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.