public class DefaultDirectoryEntry extends AbstractEntry implements DirectoryEntry
DirectoryEntry.| Constructor and Description |
|---|
DefaultDirectoryEntry(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 |
|---|---|
static DirectoryEntry |
equivalent(FileSystem target,
DirectoryEntry directory)
Creates a
DefaultDirectoryEntry that is equivalent to the supplied DirectoryEntry only in
the specified target FileSystem. |
long |
getLastModified()
Returns the time that this entry was last modified.
|
equals, getFileSystem, getName, getParent, hashCode, toPath, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFileSystem, getName, getParent, toPathpublic DefaultDirectoryEntry(FileSystem fileSystem, DirectoryEntry parent, String name)
fileSystem - The filesystem.parent - The parent (or null if this is the root entry).name - The name of the entry (or the empty string if this is the root entry).public static DirectoryEntry equivalent(FileSystem target, DirectoryEntry directory)
DefaultDirectoryEntry that is equivalent to the supplied DirectoryEntry only in
the specified target FileSystem.target - the filesystem.directory - the directory.DirectoryEntry in the target filesystem.public long getLastModified()
throws IOException
DirectoryEntrys may
delegate to FileSystem.getLastModified(DirectoryEntry).getLastModified in interface Entrylong value representing the time the directory was
last modified, measured in milliseconds since the epoch
(00:00:00 GMT, January 1, 1970), or 0L if the
the time is unknown.IOException - if an I/O error occurs.Copyright © 2009–2022 MojoHaus. All rights reserved.