public class TarDirectoryEntry extends TarEntry implements ArchiveDirectoryEntry<TarEntry,TarDirectoryEntry>
Tar entry objects are always immutable.
TarFileEntry
,
TarSymbolicLinkEntry
Modifier and Type | Method and Description |
---|---|
Map<String,TarEntry> |
getChildEntries()
Get a read only map containing this directory entry's child entries,
keyed under their (file) names.
|
protected org.entityfs.entityattrs.unix.UnixEntityMode |
getDefaultEntityMode()
Subclasses implement this to return the default Unix entity mode if none
is set in the Tar file.
|
boolean |
isEmpty()
Is this directory entry empty? (I.e: does it not contain any child
entries?)
|
getChecksum, getEntityMode, getLastModificationTime, getOwnerGid, getOwnerUid
getCollaborator, getLocation, getName, getParent, getReadLock, isReadLockedByCurrentThread, lockForReading
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocation, getParent
protected org.entityfs.entityattrs.unix.UnixEntityMode getDefaultEntityMode()
TarEntry
getDefaultEntityMode
in class TarEntry
public Map<String,TarEntry> getChildEntries()
getChildEntries
in interface ArchiveDirectoryEntry<TarEntry,TarDirectoryEntry>
null
.public boolean isEmpty()
ArchiveDirectoryEntry
isEmpty
in interface ArchiveDirectoryEntry<TarEntry,TarDirectoryEntry>
true
if the directory entry is empty.