public class FileEntry extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
private Map<String,FileEntry> |
childEntries |
private boolean |
directory |
private boolean |
exists |
private File |
file |
private boolean |
hidden |
private long |
lastModified |
private long |
length |
private String |
name |
private FileEntry |
parent |
private static long |
serialVersionUID |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
compareTo(FileEntry otherEntry) |
Map<String,FileEntry> |
getChildEntries() |
int |
getDepth() |
File |
getFile() |
long |
getLastModified() |
long |
getLength() |
String |
getName() |
FileEntry |
getParent() |
boolean |
isDirectory() |
boolean |
isExists() |
boolean |
isHidden() |
FileEntry |
newChildEntry(File file) |
void |
refresh() |
void |
setChildEntries(Map<String,FileEntry> childEntries) |
void |
setDirectory(boolean directory) |
void |
setExists(boolean exists) |
void |
setHidden(boolean hidden) |
void |
setLastModified(long lastModified) |
void |
setLength(long length) |
void |
setName(String name) |
String |
toString() |
private static final long serialVersionUID
private final FileEntry parent
private final transient File file
private String name
private boolean exists
private boolean directory
private long lastModified
private long length
private boolean hidden
public FileEntry(File file)
public void refresh()
public int getDepth()
public boolean compareTo(FileEntry otherEntry)
public String getName()
public void setName(String name)
public boolean isExists()
public void setExists(boolean exists)
public boolean isDirectory()
public void setDirectory(boolean directory)
public boolean isHidden()
public void setHidden(boolean hidden)
public long getLastModified()
public void setLastModified(long lastModified)
public long getLength()
public void setLength(long length)
public FileEntry getParent()
public File getFile()
Copyright © 2020. All rights reserved.