Liking cljdoc? Tell your friends :D

jdk.nio.file.attribute.FileOwnerAttributeView

A file attribute view that supports reading or updating the owner of a file. This file attribute view is intended for file system implementations that support a file attribute that represents an identity that is the owner of the file. Often the owner of a file is the identity of the entity that created the file.

The getOwner or setOwner methods may be used to read or update the owner of the file.

The getAttribute and setAttribute methods may also be used to read or update the owner. In that case, the owner attribute is identified by the name "owner", and the value of the attribute is a UserPrincipal.

A file attribute view that supports reading or updating the owner of a file.
This file attribute view is intended for file system implementations that
support a file attribute that represents an identity that is the owner of
the file. Often the owner of a file is the identity of the entity that
created the file.

 The getOwner or setOwner methods may
be used to read or update the owner of the file.

 The getAttribute and
setAttribute methods may also be
used to read or update the owner. In that case, the owner attribute is
identified by the name "owner", and the value of the attribute is
a UserPrincipal.
raw docstring

get-ownerclj

(get-owner this)

Read the file owner.

It it implementation specific if the file owner can be a group.

returns: the file owner - java.nio.file.attribute.UserPrincipal

throws: java.io.IOException - if an I/O error occurs

Read the file owner.

  It it implementation specific if the file owner can be a group.

returns: the file owner - `java.nio.file.attribute.UserPrincipal`

throws: java.io.IOException - if an I/O error occurs
raw docstring

nameclj

(name this)

Returns the name of the attribute view. Attribute views of this type have the name "owner".

returns: the name of the attribute view - java.lang.String

Returns the name of the attribute view. Attribute views of this type
 have the name "owner".

returns: the name of the attribute view - `java.lang.String`
raw docstring

set-ownerclj

(set-owner this owner)

Updates the file owner.

It it implementation specific if the file owner can be a group. To ensure consistent and correct behavior across platforms it is recommended that this method should only be used to set the file owner to a user principal that is not a group.

owner - the new file owner - java.nio.file.attribute.UserPrincipal

throws: java.io.IOException - if an I/O error occurs, or the owner parameter is a group and this implementation does not support setting the owner to a group

Updates the file owner.

  It it implementation specific if the file owner can be a group. To ensure consistent and correct behavior
 across platforms it is recommended that this method should only be used
 to set the file owner to a user principal that is not a group.

owner - the new file owner - `java.nio.file.attribute.UserPrincipal`

throws: java.io.IOException - if an I/O error occurs, or the owner parameter is a group and this implementation does not support setting the owner to a group
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close