public abstract class AbstractPosixFileAttributeView extends Object implements AnnotatedPosixFileAttributeView
AbstractPosixFileAttributeView
that
delegates setter methods to a PosixFileAttributeSetter
.Constructor and Description |
---|
AbstractPosixFileAttributeView() |
Modifier and Type | Method and Description |
---|---|
UserPrincipal |
getOwner() |
String |
name() |
protected abstract PosixFileAttributeSetter |
newSetter() |
void |
setCreationTime(FileTime time) |
void |
setGroup(GroupPrincipal group) |
void |
setLastAccessTime(FileTime time) |
void |
setLastModifiedTime(FileTime time) |
void |
setOwner(UserPrincipal owner) |
void |
setPermissions(Set<PosixFilePermission> perms) |
void |
setTimes(FileTime lastModifiedTime,
FileTime lastAccessTime,
FileTime createTime) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readAttributes
public final String name()
name
in interface AttributeView
name
in interface BasicFileAttributeView
name
in interface FileOwnerAttributeView
name
in interface PosixFileAttributeView
public UserPrincipal getOwner() throws IOException
getOwner
in interface FileOwnerAttributeView
IOException
public void setLastModifiedTime(FileTime time) throws IOException
setLastModifiedTime
in interface AnnotatedBasicFileAttributeView
IOException
public void setLastAccessTime(FileTime time) throws IOException
setLastAccessTime
in interface AnnotatedBasicFileAttributeView
IOException
public void setCreationTime(FileTime time) throws IOException
setCreationTime
in interface AnnotatedBasicFileAttributeView
IOException
public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException
setTimes
in interface BasicFileAttributeView
IOException
public void setPermissions(Set<PosixFilePermission> perms) throws IOException
setPermissions
in interface AnnotatedPosixFileAttributeView
setPermissions
in interface PosixFileAttributeView
IOException
public void setOwner(UserPrincipal owner) throws IOException
setOwner
in interface AnnotatedPosixFileAttributeView
setOwner
in interface FileOwnerAttributeView
IOException
public void setGroup(GroupPrincipal group) throws IOException
setGroup
in interface AnnotatedPosixFileAttributeView
setGroup
in interface PosixFileAttributeView
IOException
protected abstract PosixFileAttributeSetter newSetter()