public class SftpPosixFileAttributeView extends AbstractSftpFileAttributeView implements PosixFileAttributeView
options, path, providerlog| Constructor and Description |
|---|
SftpPosixFileAttributeView(SftpFileSystemProvider provider,
Path path,
LinkOption... options) |
| Modifier and Type | Method and Description |
|---|---|
UserPrincipal |
getOwner() |
String |
name() |
PosixFileAttributes |
readAttributes() |
void |
setGroup(GroupPrincipal group) |
void |
setOwner(UserPrincipal owner) |
void |
setPermissions(Set<PosixFilePermission> perms) |
void |
setTimes(FileTime lastModifiedTime,
FileTime lastAccessTime,
FileTime createTime) |
getPath, provider, readRemoteAttributes, writeRemoteAttributesgetSimplifiedLoggerpublic SftpPosixFileAttributeView(SftpFileSystemProvider provider, Path path, LinkOption... options)
public String name()
name in interface AttributeViewname in interface BasicFileAttributeViewname in interface FileOwnerAttributeViewname in interface PosixFileAttributeViewname in class AbstractSftpFileAttributeViewpublic 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–2017 The Apache Software Foundation. All rights reserved.