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, wait
cloneWithNewPath, getSize
public AbstractFileSystemEntry()
public AbstractFileSystemEntry(String path)
path
- - the value for pathpublic Date getLastModified()
FileSystemEntry
getLastModified
in interface FileSystemEntry
public void setLastModified(Date lastModified)
FileSystemEntry
setLastModified
in interface FileSystemEntry
lastModified
- - the lastModified value, as a Datepublic String getOwner()
getOwner
in interface FileSystemEntry
public void setOwner(String owner)
public String getGroup()
getGroup
in interface FileSystemEntry
public void setGroup(String group)
public Permissions getPermissions()
getPermissions
in interface FileSystemEntry
public void setPermissions(Permissions permissions)
public String getPath()
FileSystemEntry
getPath
in interface FileSystemEntry
public String getName()
FileSystemEntry
getName
in interface FileSystemEntry
public void setPath(String path)
path
- - the new path valuepublic void lockPath()
FileSystemEntry
lockPath
in interface FileSystemEntry
public void setPermissionsFromString(String permissionsString)
public abstract boolean isDirectory()
isDirectory
in interface FileSystemEntry
Copyright © 2016. All rights reserved.