TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.fs.archive
Class FsArchiveFileSystemEntry.DirectoryEntry<E extends FsArchiveEntry>

java.lang.Object
  extended by de.schlichtherle.truezip.fs.FsEntry
      extended by de.schlichtherle.truezip.fs.FsDecoratingEntry<E>
          extended by de.schlichtherle.truezip.fs.archive.FsArchiveFileSystemEntry<E>
              extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class de.schlichtherle.truezip.fs.archive.FsArchiveFileSystemEntry
FsArchiveFileSystemEntry.HybridEntry<E extends FsArchiveEntry>
 
Nested classes/interfaces inherited from interface de.schlichtherle.truezip.entry.Entry
Entry.Access, Entry.Size, Entry.Type
 
Field Summary
(package private)  Set<String> members
           
 
Fields inherited from class de.schlichtherle.truezip.fs.FsDecoratingEntry
delegate
 
Fields inherited from interface de.schlichtherle.truezip.entry.Entry
NULL, UNKNOWN
 
Constructor Summary
FsArchiveFileSystemEntry.DirectoryEntry(E entry)
          Decorates the given archive entry.
 
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.
 
Methods inherited from class de.schlichtherle.truezip.fs.archive.FsArchiveFileSystemEntry
create, getEntry
 
Methods inherited from class de.schlichtherle.truezip.fs.FsDecoratingEntry
getName, getSize, getTime, toString
 
Methods inherited from class de.schlichtherle.truezip.fs.FsEntry
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

members

Set<String> members
Constructor Detail

FsArchiveFileSystemEntry.DirectoryEntry

FsArchiveFileSystemEntry.DirectoryEntry(E entry)
Decorates the given archive entry.

Method Detail

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.

TrueZIP Kernel 7.0-rc2

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.