public final class SMBFileAttributeView extends Object implements BasicFileAttributeView
| Constructor and Description |
|---|
SMBFileAttributeView(SMBPath path)
Public default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
name()
Returns the name of
SMBFileAttributeView, which is 'basic'. |
BasicFileAttributes |
readAttributes()
Reads the
SmbFile's attributes and returns them in the form of an SMBFileAttributes instance. |
void |
setTimes(FileTime lastModifiedTime,
FileTime lastAccessTime,
FileTime createTime) |
public SMBFileAttributeView(SMBPath path)
path - SMBPath for which to create SMBFileAttributeView.public String name()
SMBFileAttributeView, which is 'basic'.name in interface AttributeViewname in interface BasicFileAttributeViewpublic BasicFileAttributes readAttributes() throws IOException
SmbFile's attributes and returns them in the form of an SMBFileAttributes instance.readAttributes in interface BasicFileAttributeViewSMBFileAttributesIOException - If reading the file's attributes fails.public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException
setTimes in interface BasicFileAttributeViewIOExceptionCopyright © 2017 pontius software GmbH. All rights reserved.