APIdia Launch Partner
Top Description Fields Constructors Methods
sun.nio.fs

pack-priv final Class FileOwnerAttributeViewImpl

extends Object
implements FileOwnerAttributeView, DynamicFileAttributeView
Class Inheritance
All Implemented Interfaces
sun.nio.fs.DynamicFileAttributeView, java.nio.file.attribute.FileOwnerAttributeView, java.nio.file.attribute.FileAttributeView, java.nio.file.attribute.AttributeView
Imports
java.nio.file.attribute.*, java.util.*, java.io.IOException

An implementation of FileOwnerAttributeView that delegates to a given PosixFileAttributeView or AclFileAttributeView object.

Field Summary

Modifier and TypeField and Description
private final boolean
private static final String
private final FileAttributeView

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public UserPrincipal
public String
name()

Implements java.nio.file.attribute.FileOwnerAttributeView.name.

Returns the name of the attribute view.

public Map<String, Object>
readAttributes(String[] attributes)

Implements sun.nio.fs.DynamicFileAttributeView.readAttributes.

Reads a set of file attributes as a bulk operation.

public void
setAttribute(String attribute, Object value)

Implements sun.nio.fs.DynamicFileAttributeView.setAttribute.

Sets/updates the value of an attribute.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isPosixViewback to summary
private final boolean isPosixView
OWNER_NAMEback to summary
private static final String OWNER_NAME
viewback to summary
private final FileAttributeView view

Constructor Detail

FileOwnerAttributeViewImplback to summary
pack-priv FileOwnerAttributeViewImpl(PosixFileAttributeView view)
FileOwnerAttributeViewImplback to summary
pack-priv FileOwnerAttributeViewImpl(AclFileAttributeView view)

Method Detail

getOwnerback to summary
public UserPrincipal getOwner() throws IOException

Implements java.nio.file.attribute.FileOwnerAttributeView.getOwner.

Doc from java.nio.file.attribute.FileOwnerAttributeView.getOwner.

Read the file owner.

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

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
nameback to summary
public String name()

Implements java.nio.file.attribute.FileOwnerAttributeView.name.

Doc from java.nio.file.attribute.FileOwnerAttributeView.name.

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

Annotations
@Override
readAttributesback to summary
public Map<String, Object> readAttributes(String[] attributes) throws IOException

Implements sun.nio.fs.DynamicFileAttributeView.readAttributes.

Doc from sun.nio.fs.DynamicFileAttributeView.readAttributes.

Reads a set of file attributes as a bulk operation.

Annotations
@Override
setAttributeback to summary
public void setAttribute(String attribute, Object value) throws IOException

Implements sun.nio.fs.DynamicFileAttributeView.setAttribute.

Doc from sun.nio.fs.DynamicFileAttributeView.setAttribute.

Sets/updates the value of an attribute.

Annotations
@Override
setOwnerback to summary
public void setOwner(UserPrincipal owner) throws IOException

Implements java.nio.file.attribute.FileOwnerAttributeView.setOwner.

Doc from java.nio.file.attribute.FileOwnerAttributeView.setOwner.

Updates the file owner.

It is 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.

Annotations
@Override
Exceptions
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