public class SftpPosixFileAttributeView extends Object implements PosixFileAttributeView
| Constructor and Description |
|---|
SftpPosixFileAttributeView(SftpFileSystemProvider provider,
Path path,
LinkOption... options) |
| Modifier and Type | Method and Description |
|---|---|
UserPrincipal |
getOwner() |
Path |
getPath() |
String |
name() |
SftpFileSystemProvider |
provider() |
PosixFileAttributes |
readAttributes() |
void |
setGroup(GroupPrincipal group) |
void |
setOwner(UserPrincipal owner) |
void |
setPermissions(Set<PosixFilePermission> perms) |
void |
setTimes(FileTime lastModifiedTime,
FileTime lastAccessTime,
FileTime createTime) |
public SftpPosixFileAttributeView(SftpFileSystemProvider provider, Path path, LinkOption... options)
public String name()
name in interface AttributeViewname in interface BasicFileAttributeViewname in interface FileOwnerAttributeViewname in interface PosixFileAttributeViewpublic final SftpFileSystemProvider provider()
SftpFileSystemProvider used to
provide the view functionalitypublic PosixFileAttributes readAttributes() throws IOException
readAttributes in interface BasicFileAttributeViewreadAttributes in interface PosixFileAttributeViewIOExceptionpublic void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException
setTimes in interface BasicFileAttributeViewIOExceptionpublic void setPermissions(Set<PosixFilePermission> perms) throws IOException
setPermissions in interface PosixFileAttributeViewIOExceptionpublic void setGroup(GroupPrincipal group) throws IOException
setGroup in interface PosixFileAttributeViewIOExceptionpublic UserPrincipal getOwner() throws IOException
getOwner in interface FileOwnerAttributeViewIOExceptionpublic void setOwner(UserPrincipal owner) throws IOException
setOwner in interface FileOwnerAttributeViewIOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.