de.schlichtherle.truezip.fs.archive
Class FsArchiveFileSystemEntry.DirectoryEntry<E extends FsArchiveEntry>
java.lang.Object
de.schlichtherle.truezip.fs.FsEntry
de.schlichtherle.truezip.fs.FsDecoratingEntry<E>
de.schlichtherle.truezip.fs.archive.FsArchiveFileSystemEntry<E>
de.schlichtherle.truezip.fs.archive.FsArchiveFileSystemEntry.DirectoryEntry<E>
- All Implemented Interfaces:
- Entry
- Direct Known Subclasses:
- FsArchiveFileSystemEntry.NamedDirectoryEntry, FsArchiveFileSystemEntry.SpecialDirectoryEntry
- Enclosing class:
- FsArchiveFileSystemEntry<E extends FsArchiveEntry>
private static class FsArchiveFileSystemEntry.DirectoryEntry<E extends FsArchiveEntry>
- extends FsArchiveFileSystemEntry<E>
A directory entry.
| Fields inherited from interface de.schlichtherle.truezip.entry.Entry |
NULL, UNKNOWN |
|
Method Summary |
(package private) boolean |
add(String member)
Adds the given base path to the set of members of this directory
if and only if this file system entry is a directory. |
(package private) FsArchiveFileSystemEntry<E> |
clone(FsArchiveFileSystem<E> fileSystem)
|
Set<String> |
getMembers()
If this is not a directory entry, null is returned. |
Entry.Type |
getType()
Returns the type of this entry or null if and only if this entry
does not exist. |
(package private) boolean |
remove(String member)
Removes the given base path from the set of members of this
directory
if and only if this file system entry is a directory. |
members
Set<String> members
FsArchiveFileSystemEntry.DirectoryEntry
FsArchiveFileSystemEntry.DirectoryEntry(E entry)
- Decorates the given archive entry.
clone
FsArchiveFileSystemEntry<E> clone(FsArchiveFileSystem<E> fileSystem)
- Overrides:
clone in class FsArchiveFileSystemEntry<E extends FsArchiveEntry>
getType
public Entry.Type getType()
- Description copied from interface:
Entry
- Returns the type of this entry or
null if and only if this entry
does not exist.
- Specified by:
getType in interface Entry- Overrides:
getType in class FsDecoratingEntry<E extends FsArchiveEntry>
- Returns:
- The type of this entry or
null if and only if this entry
does not exist.
getMembers
public Set<String> getMembers()
- Description copied from class:
FsEntry
- If this is not a directory entry,
null is returned.
Otherwise, an unmodifiable set of strings is returned which
represent the base names of the members of this directory entry.
- Specified by:
getMembers in class FsEntry
add
boolean add(String member)
- Description copied from class:
FsArchiveFileSystemEntry
- Adds the given base path to the set of members of this directory
if and only if this file system entry is a directory.
- Overrides:
add in class FsArchiveFileSystemEntry<E extends FsArchiveEntry>
- Parameters:
member - The non-null base path of the member to add.
- Returns:
- Whether the member has been added or an equal member was
already present in the directory.
remove
boolean remove(String member)
- Description copied from class:
FsArchiveFileSystemEntry
- Removes the given base path from the set of members of this
directory
if and only if this file system entry is a directory.
- Overrides:
remove in class FsArchiveFileSystemEntry<E extends FsArchiveEntry>
- Parameters:
member - The non-null base path of the member to
remove.
- Returns:
- Whether the member has been removed or no equal member was
present in the directory.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.