Package com.google.common.jimfs
Class AclAttributeProvider.View
- java.lang.Object
-
- com.google.common.jimfs.AbstractAttributeView
-
- com.google.common.jimfs.AclAttributeProvider.View
-
- All Implemented Interfaces:
java.nio.file.attribute.AclFileAttributeView
,java.nio.file.attribute.AttributeView
,java.nio.file.attribute.FileAttributeView
,java.nio.file.attribute.FileOwnerAttributeView
- Enclosing class:
- AclAttributeProvider
private static final class AclAttributeProvider.View extends AbstractAttributeView implements java.nio.file.attribute.AclFileAttributeView
Implementation ofAclFileAttributeView
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.attribute.FileOwnerAttributeView
ownerView
-
Constructor Summary
Constructors Constructor Description View(FileLookup lookup, java.nio.file.attribute.FileOwnerAttributeView ownerView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.nio.file.attribute.AclEntry>
getAcl()
java.nio.file.attribute.UserPrincipal
getOwner()
java.lang.String
name()
void
setAcl(java.util.List<java.nio.file.attribute.AclEntry> acl)
void
setOwner(java.nio.file.attribute.UserPrincipal owner)
-
Methods inherited from class com.google.common.jimfs.AbstractAttributeView
lookupFile
-
-
-
-
Constructor Detail
-
View
public View(FileLookup lookup, java.nio.file.attribute.FileOwnerAttributeView ownerView)
-
-
Method Detail
-
name
public java.lang.String name()
- Specified by:
name
in interfacejava.nio.file.attribute.AclFileAttributeView
- Specified by:
name
in interfacejava.nio.file.attribute.AttributeView
- Specified by:
name
in interfacejava.nio.file.attribute.FileOwnerAttributeView
-
getAcl
public java.util.List<java.nio.file.attribute.AclEntry> getAcl() throws java.io.IOException
- Specified by:
getAcl
in interfacejava.nio.file.attribute.AclFileAttributeView
- Throws:
java.io.IOException
-
setAcl
public void setAcl(java.util.List<java.nio.file.attribute.AclEntry> acl) throws java.io.IOException
- Specified by:
setAcl
in interfacejava.nio.file.attribute.AclFileAttributeView
- Throws:
java.io.IOException
-
getOwner
public java.nio.file.attribute.UserPrincipal getOwner() throws java.io.IOException
- Specified by:
getOwner
in interfacejava.nio.file.attribute.FileOwnerAttributeView
- Throws:
java.io.IOException
-
setOwner
public void setOwner(java.nio.file.attribute.UserPrincipal owner) throws java.io.IOException
- Specified by:
setOwner
in interfacejava.nio.file.attribute.FileOwnerAttributeView
- Throws:
java.io.IOException
-
-