About Question enthuware.ocpjp.v7.2.1554 :
Posted: Sat Apr 02, 2016 9:10 am
PosixFileAttributeView
there is no setOwner method
Only method for updates the file group-owner - void setGroup(GroupPrincipal group)
https://docs.oracle.com/javase/7/docs/a ... eView.htmlUnix based file systems provide this view. This view supports the following attributes in addition to BasicFileAttributeView:
"permissions" : Set<PosixFilePermission>
"group" : GroupPrincipal
The permissions attribute is used to update the permissions, owner, or group-owner as by invoking the setPermissions, setOwner, and setGroup methods respectively.
there is no setOwner method
Only method for updates the file group-owner - void setGroup(GroupPrincipal group)