public class FileAttribute extends Object implements Serializable
Constructor and Description |
---|
FileAttribute(Path path,
BasicFileAttributes attr) |
Modifier and Type | Method and Description |
---|---|
long |
getAccessTime() |
BasicFileAttributes |
getAttr() |
long |
getCreateTime() |
File |
getFile() |
String |
getFileName() |
String |
getFilePath() |
long |
getModifiedTime() |
Path |
getPath() |
long |
getSize() |
URI |
getUri() |
boolean |
isDirectory() |
boolean |
isOther() |
boolean |
isRegularFile() |
boolean |
isSymbolicLink() |
void |
setAccessTime(long accessTime) |
void |
setCreateTime(long createTime) |
void |
setDirectory(boolean directory) |
void |
setFileName(String fileName) |
void |
setFilePath(String filePath) |
void |
setModifiedTime(long modifiedTime) |
void |
setOther(boolean other) |
void |
setPath(Path path) |
void |
setRegularFile(boolean regularFile) |
void |
setSize(long size) |
void |
setSymbolicLink(boolean symbolicLink) |
String |
toString() |
public FileAttribute(Path path, BasicFileAttributes attr)
public Path getPath()
public void setPath(Path path)
public BasicFileAttributes getAttr()
public String getFileName()
public void setFileName(String fileName)
public String getFilePath()
public void setFilePath(String filePath)
public long getSize()
public void setSize(long size)
public boolean isSymbolicLink()
public void setSymbolicLink(boolean symbolicLink)
public boolean isDirectory()
public void setDirectory(boolean directory)
public boolean isRegularFile()
public void setRegularFile(boolean regularFile)
public boolean isOther()
public void setOther(boolean other)
public long getCreateTime()
public void setCreateTime(long createTime)
public long getAccessTime()
public void setAccessTime(long accessTime)
public long getModifiedTime()
public void setModifiedTime(long modifiedTime)
public File getFile()
public URI getUri()
Copyright © 2024. All rights reserved.