TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.fs.archive
Class FsArchiveFileSystemEntry.HybridEntry<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.HybridEntry<E>
All Implemented Interfaces:
Entry
Enclosing class:
FsArchiveFileSystemEntry<E extends FsArchiveEntry>

static class FsArchiveFileSystemEntry.HybridEntry<E extends FsArchiveEntry>
extends FsArchiveFileSystemEntry<E>

A hybrid file 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)  FsArchiveFileSystemEntry<E> directory
           
(package private)  FsArchiveFileSystemEntry<E> file
           
 
Fields inherited from class de.schlichtherle.truezip.fs.FsDecoratingEntry
delegate
 
Fields inherited from interface de.schlichtherle.truezip.entry.Entry
NULL, UNKNOWN
 
Constructor Summary
FsArchiveFileSystemEntry.HybridEntry(E delegate, FsArchiveFileSystemEntry<E> file, FsArchiveFileSystemEntry<E> directory)
           
 
Method Summary
(package private)  FsArchiveFileSystemEntry<E> clone(FsArchiveFileSystem<E> fileSystem)
           
 Set<String> getMembers()
          If this is not a directory entry, null is returned.
 String getName()
          Returns a string representation of the file system entry name.
 long getSize(Entry.Size type)
          Returns the size of this entry.
 long getTime(Entry.Access type)
          Returns the last access time of this entry.
 Entry.Type getType()
          Returns the type of this entry or null if and only if this entry does not exist.
 
Methods inherited from class de.schlichtherle.truezip.fs.archive.FsArchiveFileSystemEntry
add, create, getEntry, remove
 
Methods inherited from class de.schlichtherle.truezip.fs.FsDecoratingEntry
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

file

final FsArchiveFileSystemEntry<E extends FsArchiveEntry> file

directory

final FsArchiveFileSystemEntry<E extends FsArchiveEntry> directory
Constructor Detail

FsArchiveFileSystemEntry.HybridEntry

FsArchiveFileSystemEntry.HybridEntry(E delegate,
                                     FsArchiveFileSystemEntry<E> file,
                                     FsArchiveFileSystemEntry<E> directory)
Method Detail

clone

FsArchiveFileSystemEntry<E> clone(FsArchiveFileSystem<E> fileSystem)
Overrides:
clone in class FsArchiveFileSystemEntry<E extends FsArchiveEntry>

getName

public String getName()
Description copied from class: FsEntry
Returns a string representation of the file system entry name.

Specified by:
getName in interface Entry
Overrides:
getName in class FsDecoratingEntry<E extends FsArchiveEntry>
Returns:
A string representation of the file system entry name.
See Also:
EntryName.create(String)

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.

getSize

public long getSize(Entry.Size type)
Description copied from interface: Entry
Returns the size of this entry.

Specified by:
getSize in interface Entry
Overrides:
getSize in class FsDecoratingEntry<E extends FsArchiveEntry>
Returns:
The size of the given size type for this entry in bytes, or Entry.UNKNOWN if not specified or the type is unsupported. This method may not be meaningful for non-file entries.

getTime

public long getTime(Entry.Access type)
Description copied from interface: Entry
Returns the last access time of this entry.

Specified by:
getTime in interface Entry
Overrides:
getTime in class FsDecoratingEntry<E extends FsArchiveEntry>
Returns:
The last time of the given access type for this entry in milliseconds since the epoch or -1 if not specified or the type is unsupported.

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

TrueZIP Kernel 7.0-rc2

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