public static class CmsFileUtils.FileInfo
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private java.util.Date |
creationTime |
private boolean |
directory |
private java.lang.String |
fileName |
private java.util.Date |
lastAccessTime |
private java.util.Date |
lastModifiedTime |
private long |
size |
构造器和说明 |
---|
FileInfo(java.lang.String fileName,
boolean directory,
java.nio.file.attribute.BasicFileAttributes attrs) |
限定符和类型 | 方法和说明 |
---|---|
java.util.Date |
getCreationTime() |
java.lang.String |
getFileName() |
java.util.Date |
getLastAccessTime() |
java.util.Date |
getLastModifiedTime() |
long |
getSize() |
boolean |
isDirectory() |
void |
setCreationTime(java.util.Date creationTime) |
void |
setDirectory(boolean directory) |
void |
setFileName(java.lang.String fileName) |
void |
setLastAccessTime(java.util.Date lastAccessTime) |
void |
setLastModifiedTime(java.util.Date lastModifiedTime) |
void |
setSize(long size) |
private java.lang.String fileName
private boolean directory
private java.util.Date lastModifiedTime
private java.util.Date lastAccessTime
private java.util.Date creationTime
private long size
public FileInfo(java.lang.String fileName, boolean directory, java.nio.file.attribute.BasicFileAttributes attrs)
fileName
- directory
- attrs
- public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName
- public boolean isDirectory()
public void setDirectory(boolean directory)
directory
- public java.util.Date getLastModifiedTime()
public void setLastModifiedTime(java.util.Date lastModifiedTime)
lastModifiedTime
- public java.util.Date getLastAccessTime()
public void setLastAccessTime(java.util.Date lastAccessTime)
lastAccessTime
- public java.util.Date getCreationTime()
public void setCreationTime(java.util.Date creationTime)
creationTime
- public long getSize()
public void setSize(long size)
size
-