|
NIO2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PosixFileAttributes
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(org.classpath.icedtea.java.nio.file.FileRef, org.classpath.icedtea.java.nio.file.LinkOption...)| Method Summary | |
|---|---|
GroupPrincipal |
group()
Returns the group owner of the file. |
UserPrincipal |
owner()
Returns the owner of the file. |
java.util.Set<PosixFilePermission> |
permissions()
Returns the permissions of the file. |
| Methods inherited from interface org.classpath.icedtea.java.nio.file.attribute.BasicFileAttributes |
|---|
creationTime, fileKey, isDirectory, isOther, isRegularFile, isSymbolicLink, lastAccessTime, lastModifiedTime, linkCount, resolution, size |
| Method Detail |
|---|
UserPrincipal owner()
FileOwnerAttributeView.setOwner(org.classpath.icedtea.java.nio.file.attribute.UserPrincipal)GroupPrincipal group()
PosixFileAttributeView.setGroup(org.classpath.icedtea.java.nio.file.attribute.GroupPrincipal)java.util.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)
|
NIO2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2010 Sun Microsystems, Inc. All rights reserved. Use is subject to the terms of the GNU General Public License.