public abstract class AbstractFileSystemEntry extends Object implements FileSystemEntry
| Constructor and Description |
|---|
AbstractFileSystemEntry()
Construct a new instance without setting its path
|
AbstractFileSystemEntry(String path)
Construct a new instance with the specified value for its path
|
| Modifier and Type | Method and Description |
|---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneWithNewPath, getSizepublic AbstractFileSystemEntry()
public AbstractFileSystemEntry(String path)
path - - the value for pathpublic Date getLastModified()
FileSystemEntrygetLastModified in interface FileSystemEntrypublic void setLastModified(Date lastModified)
FileSystemEntrysetLastModified 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()
FileSystemEntrygetPath in interface FileSystemEntrypublic String getName()
FileSystemEntrygetName in interface FileSystemEntrypublic void setPath(String path)
path - - the new path valuepublic void lockPath()
FileSystemEntrylockPath in interface FileSystemEntrypublic void setPermissionsFromString(String permissionsString)
public abstract boolean isDirectory()
isDirectory in interface FileSystemEntryCopyright © 2016. All rights reserved.