public class S3PosixFileAttributeView extends Object implements PosixFileAttributeView
| Constructor and Description |
|---|
S3PosixFileAttributeView(S3Path s3Path) |
| Modifier and Type | Method and Description |
|---|---|
UserPrincipal |
getOwner() |
String |
name() |
PosixFileAttributes |
read() |
PosixFileAttributes |
readAttributes() |
void |
setGroup(GroupPrincipal group) |
void |
setOwner(UserPrincipal owner) |
void |
setPermissions(Set<PosixFilePermission> perms) |
void |
setTimes(FileTime lastModifiedTime,
FileTime lastAccessTime,
FileTime createTime) |
public S3PosixFileAttributeView(S3Path s3Path)
public String name()
name in interface AttributeViewname in interface BasicFileAttributeViewname in interface FileOwnerAttributeViewname in interface PosixFileAttributeViewpublic PosixFileAttributes readAttributes() throws IOException
readAttributes in interface BasicFileAttributeViewreadAttributes in interface PosixFileAttributeViewIOExceptionpublic UserPrincipal getOwner() throws IOException
getOwner in interface FileOwnerAttributeViewIOExceptionpublic void setOwner(UserPrincipal owner) throws IOException
setOwner in interface FileOwnerAttributeViewIOExceptionpublic void setPermissions(Set<PosixFilePermission> perms) throws IOException
setPermissions in interface PosixFileAttributeViewIOExceptionpublic void setGroup(GroupPrincipal group) throws IOException
setGroup in interface PosixFileAttributeViewIOExceptionpublic void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException
setTimes in interface BasicFileAttributeViewIOExceptionpublic PosixFileAttributes read() throws IOException
IOExceptionCopyright © 2018. All rights reserved.