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)