|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PosixFileAttributes
Disabled: no SafeJ information.
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...)
Method Summary | |
---|---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |