|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileSystemEntry
Interface for an entry within a fake file system, representing a single file or directory.
| Method Summary | |
|---|---|
FileSystemEntry |
cloneWithNewPath(String path)
Return a new FileSystemEntry that is a clone of this object, except having the specified path |
String |
getGroup()
|
Date |
getLastModified()
Return the timestamp Date for the last modification of this file system entry |
String |
getName()
Return the file name or directory name (no path) for this entry |
String |
getOwner()
|
String |
getPath()
Return the path for this file system entry |
Permissions |
getPermissions()
|
long |
getSize()
Return the size of this file system entry |
boolean |
isDirectory()
Return true if this entry represents a directory, false otherwise |
void |
lockPath()
Lock down the path so it cannot be changed |
void |
setLastModified(Date lastModified)
Set the timestamp Date for the last modification of this file system entry |
| Method Detail |
|---|
boolean isDirectory()
String getPath()
String getName()
long getSize()
Date getLastModified()
void setLastModified(Date lastModified)
lastModified - - the lastModified value, as a DateString getOwner()
String getGroup()
Permissions getPermissions()
FileSystemEntry cloneWithNewPath(String path)
path - - the new path value for the cloned file system entry
void lockPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||