|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockftpserver.fake.filesystem.AbstractFileSystemEntry
public abstract class AbstractFileSystemEntry
The abstract superclass for concrete file system entry classes representing files and directories.
| Constructor Summary | |
|---|---|
AbstractFileSystemEntry()
Construct a new instance without setting its path |
|
AbstractFileSystemEntry(String path)
Construct a new instance with the specified value for its path |
|
| Method Summary | |
|---|---|
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()
|
abstract boolean |
isDirectory()
Abstract method -- must be implemented within concrete subclasses |
void |
lockPath()
Lock down the path so it cannot be changed |
void |
setGroup(String group)
|
void |
setLastModified(Date lastModified)
Set the timestamp Date for the last modification of this file system entry |
void |
setOwner(String owner)
|
void |
setPath(String path)
Set the path for this entry. |
void |
setPermissions(Permissions permissions)
|
void |
setPermissionsFromString(String permissionsString)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mockftpserver.fake.filesystem.FileSystemEntry |
|---|
cloneWithNewPath, getSize |
| Constructor Detail |
|---|
public AbstractFileSystemEntry()
public AbstractFileSystemEntry(String path)
path - - the value for path| Method Detail |
|---|
public Date getLastModified()
FileSystemEntry
getLastModified in interface FileSystemEntrypublic void setLastModified(Date lastModified)
FileSystemEntry
setLastModified in interface FileSystemEntrylastModified - - the lastModified value, as a Datepublic String getOwner()
getOwner in interface FileSystemEntrypublic void setOwner(String owner)
public String getGroup()
getGroup in interface FileSystemEntrypublic void setGroup(String group)
public Permissions getPermissions()
getPermissions in interface FileSystemEntrypublic void setPermissions(Permissions permissions)
public String getPath()
FileSystemEntry
getPath in interface FileSystemEntrypublic String getName()
FileSystemEntry
getName in interface FileSystemEntrypublic void setPath(String path)
path - - the new path valuepublic void lockPath()
FileSystemEntry
lockPath in interface FileSystemEntrypublic void setPermissionsFromString(String permissionsString)
public abstract boolean isDirectory()
isDirectory in interface FileSystemEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||