public class DirectoryEntry extends AbstractFileSystemEntry
| Constructor and Description |
|---|
DirectoryEntry()
Construct a new instance without setting its path
|
DirectoryEntry(String path)
Construct a new instance with the specified value for its path
|
| Modifier and Type | Method and Description |
|---|---|
FileSystemEntry |
cloneWithNewPath(String path)
Return a new FileSystemEntry that is a clone of this object, except having the specified path
|
long |
getSize()
Return the size of this directory.
|
boolean |
isDirectory()
Return true to indicate that this entry represents a directory
|
String |
toString() |
getGroup, getLastModified, getName, getOwner, getPath, getPermissions, lockPath, setGroup, setLastModified, setOwner, setPath, setPermissions, setPermissionsFromStringpublic DirectoryEntry()
public DirectoryEntry(String path)
path - - the value for pathpublic boolean isDirectory()
isDirectory in interface FileSystemEntryisDirectory in class AbstractFileSystemEntrypublic long getSize()
public String toString()
toString in class ObjectObject.toString()public FileSystemEntry cloneWithNewPath(String path)
path - - the new path value for the cloned file system entryCopyright © 2016. All rights reserved.