public abstract class AbstractEntry extends Object implements Entry
Entry.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEntry(FileSystem fileSystem,
DirectoryEntry parent,
String name)
Creates an entry in the specified file system with the specified parent and name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
FileSystem |
getFileSystem()
Returns the repository that this entry belongs to.
|
String |
getName()
Returns the name of this entry.
|
DirectoryEntry |
getParent()
Returns the parent of this entry (or
null if there is no parent, that is the root entry). |
int |
hashCode() |
String |
toPath()
Returns the path of this entry relative to the root of the filesystem.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLastModifiedprotected AbstractEntry(FileSystem fileSystem, DirectoryEntry parent, String name)
fileSystem - The filesystem.parent - The parent.name - The name of the entry.public FileSystem getFileSystem()
getFileSystem in interface Entrypublic DirectoryEntry getParent()
null if there is no parent, that is the root entry).public String getName()
Copyright © 2009–2022 MojoHaus. All rights reserved.