org.at4j.archive
Interface ArchiveDirectoryEntry<T extends ArchiveEntry<T,U>,U extends ArchiveDirectoryEntry<T,U>>

Type Parameters:
T - The type of entries in the archive.
U - The type of directory entries in the archive.
All Superinterfaces:
ArchiveEntry<T,U>, Lockable, Named, ReadLockable
All Known Implementing Classes:
PaxDirectoryEntry, TarDirectoryEntry, UstarDirectoryEntry, ZipDirectoryEntry

public interface ArchiveDirectoryEntry<T extends ArchiveEntry<T,U>,U extends ArchiveDirectoryEntry<T,U>>
extends ArchiveEntry<T,U>

This interface defines a generic directory entry in an archive.

Since:
1.0
Author:
Karl Gustafsson

Method Summary
 Map<String,T> getChildEntries()
          Get a read only Map containing this directory entry's child entries, if any.
 boolean isEmpty()
          Is this directory entry empty? (I.e: does it not contain any child entries?)
 
Methods inherited from interface org.at4j.archive.ArchiveEntry
getLocation, getParent
 
Methods inherited from interface org.entityfs.Named
getName
 
Methods inherited from interface org.entityfs.lock.ReadLockable
getReadLock, isReadLockedByCurrentThread, lockForReading
 

Method Detail

getChildEntries

Map<String,T> getChildEntries()
Get a read only Map containing this directory entry's child entries, if any. The map's keys are the child entries' names (not including the path up to and including this directory).

Returns:
A read only Map containing this entry's child entries.

isEmpty

boolean isEmpty()
Is this directory entry empty? (I.e: does it not contain any child entries?)

Returns:
true if the directory entry is empty.