Package com.google.common.jimfs
Class PosixAttributeProvider.View
java.lang.Object
com.google.common.jimfs.AbstractAttributeView
com.google.common.jimfs.PosixAttributeProvider.View
- All Implemented Interfaces:
AttributeView
,BasicFileAttributeView
,FileAttributeView
,FileOwnerAttributeView
,PosixFileAttributeView
- Enclosing class:
PosixAttributeProvider
private static class PosixAttributeProvider.View
extends AbstractAttributeView
implements PosixFileAttributeView
Implementation of
PosixFileAttributeView
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BasicFileAttributeView
private final FileOwnerAttributeView
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
View
(FileLookup lookup, BasicFileAttributeView basicView, FileOwnerAttributeView ownerView) -
Method Summary
Modifier and TypeMethodDescriptiongetOwner()
name()
void
setGroup
(GroupPrincipal group) void
setOwner
(UserPrincipal owner) void
setPermissions
(Set<PosixFilePermission> perms) void
Methods inherited from class com.google.common.jimfs.AbstractAttributeView
lookupFile
-
Field Details
-
basicView
-
ownerView
-
-
Constructor Details
-
View
protected View(FileLookup lookup, BasicFileAttributeView basicView, FileOwnerAttributeView ownerView)
-
-
Method Details
-
name
- Specified by:
name
in interfaceAttributeView
- Specified by:
name
in interfaceBasicFileAttributeView
- Specified by:
name
in interfaceFileOwnerAttributeView
- Specified by:
name
in interfacePosixFileAttributeView
-
readAttributes
- Specified by:
readAttributes
in interfaceBasicFileAttributeView
- Specified by:
readAttributes
in interfacePosixFileAttributeView
- Throws:
IOException
-
setTimes
public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException - Specified by:
setTimes
in interfaceBasicFileAttributeView
- Throws:
IOException
-
setPermissions
- Specified by:
setPermissions
in interfacePosixFileAttributeView
- Throws:
IOException
-
setGroup
- Specified by:
setGroup
in interfacePosixFileAttributeView
- Throws:
IOException
-
getOwner
- Specified by:
getOwner
in interfaceFileOwnerAttributeView
- Throws:
IOException
-
setOwner
- Specified by:
setOwner
in interfaceFileOwnerAttributeView
- Throws:
IOException
-