de.schlichtherle.truezip.fs.archive
Class FsArchiveFileSystemEntry.HybridEntry<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.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.
| Fields inherited from interface de.schlichtherle.truezip.entry.Entry |
NULL, UNKNOWN |
file
final FsArchiveFileSystemEntry<E extends FsArchiveEntry> file
directory
final FsArchiveFileSystemEntry<E extends FsArchiveEntry> directory
FsArchiveFileSystemEntry.HybridEntry
FsArchiveFileSystemEntry.HybridEntry(E delegate,
FsArchiveFileSystemEntry<E> file,
FsArchiveFileSystemEntry<E> directory)
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
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.