public class GuestFileAttributeView extends Object implements PosixFileAttributeView, LinkInfoSettable, ReadonlySettable
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Stephan Pfab BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **** END LICENSE BLOCK ****
| Modifier and Type | Field and Description |
|---|---|
protected FileAttributeView |
host |
protected boolean |
sym |
| Constructor and Description |
|---|
GuestFileAttributeView(FileAttributeView host) |
| Modifier and Type | Method and Description |
|---|---|
UserPrincipal |
getOwner() |
String |
name() |
FileOwnerAttributeView |
ownerHost() |
GuestFileAttributes |
readAttributes() |
void |
setGroup(GroupPrincipal group) |
void |
setLink() |
void |
setOwner(UserPrincipal owner) |
void |
setPermissions(Set<PosixFilePermission> perms) |
void |
setReadonly() |
void |
setTimes(FileTime lastModifiedTime,
FileTime lastAccessTime,
FileTime createTime) |
protected final FileAttributeView host
protected boolean sym
public GuestFileAttributeView(FileAttributeView host)
public String name()
name in interface AttributeViewname in interface BasicFileAttributeViewname in interface FileOwnerAttributeViewname in interface PosixFileAttributeViewpublic UserPrincipal getOwner() throws IOException
getOwner in interface FileOwnerAttributeViewIOExceptionpublic void setOwner(UserPrincipal owner) throws IOException
setOwner in interface FileOwnerAttributeViewIOExceptionpublic GuestFileAttributes 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 void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException
setTimes in interface BasicFileAttributeViewIOExceptionpublic void setLink()
setLink in interface LinkInfoSettablepublic void setReadonly()
setReadonly in interface ReadonlySettablepublic FileOwnerAttributeView ownerHost()
Copyright © 2015. All rights reserved.