public class HadoopPosixFileAttributeView extends HadoopFileOwnerAttributeView implements PosixFileAttributeView, IAttributeReader, IAttributeWriter
PosixFileAttributeView.| Constructor and Description |
|---|
HadoopPosixFileAttributeView(HadoopPath path,
boolean isPosixView) |
| Modifier and Type | Method and Description |
|---|---|
String |
name() |
PosixFileAttributes |
readAttributes() |
Map<String,Object> |
readAttributes(String attributes,
LinkOption[] options) |
void |
setAttribute(String attr,
Object value,
LinkOption[] options) |
void |
setGroup(GroupPrincipal group) |
void |
setPermissions(Set<PosixFilePermission> perms) |
void |
setTimes(FileTime lastModifiedTime,
FileTime lastAccessTime,
FileTime createTime) |
getOwner, setOwnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOwner, setOwnerpublic HadoopPosixFileAttributeView(HadoopPath path, boolean isPosixView)
public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException
setTimes in interface BasicFileAttributeViewIOExceptionpublic String name()
name in interface AttributeViewname in interface BasicFileAttributeViewname in interface FileOwnerAttributeViewname in interface PosixFileAttributeViewname in class HadoopFileOwnerAttributeViewpublic PosixFileAttributes readAttributes() throws IOException
readAttributes in interface BasicFileAttributeViewreadAttributes in interface PosixFileAttributeViewIOExceptionpublic void setPermissions(Set<PosixFilePermission> perms) throws IOException
setPermissions in interface PosixFileAttributeViewIOExceptionpublic void setGroup(GroupPrincipal group) throws IOException
setGroup in interface PosixFileAttributeViewIOExceptionpublic Map<String,Object> readAttributes(String attributes, LinkOption[] options) throws IOException
readAttributes in interface IAttributeReaderIOExceptionpublic void setAttribute(String attr, Object value, LinkOption[] options) throws IOException
setAttribute in interface IAttributeWriterIOExceptionCopyright © 2017. All rights reserved.