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 BasicFileAttributeViewprivate final FileOwnerAttributeView -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedView(FileLookup lookup, BasicFileAttributeView basicView, FileOwnerAttributeView ownerView) -
Method Summary
Modifier and TypeMethodDescriptiongetOwner()name()voidsetGroup(GroupPrincipal group) voidsetOwner(UserPrincipal owner) voidsetPermissions(Set<PosixFilePermission> perms) voidMethods inherited from class AbstractAttributeView
lookupFile
-
Field Details
-
basicView
-
ownerView
-
-
Constructor Details
-
View
protected View(FileLookup lookup, BasicFileAttributeView basicView, FileOwnerAttributeView ownerView)
-
-
Method Details
-
name
- Specified by:
namein interfaceAttributeView- Specified by:
namein interfaceBasicFileAttributeView- Specified by:
namein interfaceFileOwnerAttributeView- Specified by:
namein interfacePosixFileAttributeView
-
readAttributes
- Specified by:
readAttributesin interfaceBasicFileAttributeView- Specified by:
readAttributesin interfacePosixFileAttributeView- Throws:
IOException
-
setTimes
public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException - Specified by:
setTimesin interfaceBasicFileAttributeView- Throws:
IOException
-
setPermissions
- Specified by:
setPermissionsin interfacePosixFileAttributeView- Throws:
IOException
-
setGroup
- Specified by:
setGroupin interfacePosixFileAttributeView- Throws:
IOException
-
getOwner
- Specified by:
getOwnerin interfaceFileOwnerAttributeView- Throws:
IOException
-
setOwner
- Specified by:
setOwnerin interfaceFileOwnerAttributeView- Throws:
IOException
-