public class SftpPosixFileAttributeView extends AbstractSftpFileAttributeView implements PosixFileAttributeView
options, path, provider
log
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, writeRemoteAttributes
public SftpPosixFileAttributeView(SftpFileSystemProvider provider, Path path, LinkOption... options)
public String name()
name
in interface AttributeView
name
in interface BasicFileAttributeView
name
in interface FileOwnerAttributeView
name
in interface PosixFileAttributeView
name
in class AbstractSftpFileAttributeView
public PosixFileAttributes readAttributes() throws IOException
readAttributes
in interface BasicFileAttributeView
readAttributes
in interface PosixFileAttributeView
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 PosixFileAttributeView
IOException
public void setGroup(GroupPrincipal group) throws IOException
setGroup
in interface PosixFileAttributeView
IOException
public UserPrincipal getOwner() throws IOException
getOwner
in interface FileOwnerAttributeView
IOException
public void setOwner(UserPrincipal owner) throws IOException
setOwner
in interface FileOwnerAttributeView
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.