TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.fs
Class FsEntry

java.lang.Object
  extended by de.schlichtherle.truezip.fs.FsEntry
All Implemented Interfaces:
Entry
Direct Known Subclasses:
FsDecoratingEntry

public abstract class FsEntry
extends Object
implements Entry

An abstract file system entry is an entry which can list directory members. Optionally, it may also provide access to another entry which is decorated by it.

Author:
Christian Schlichtherle

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schlichtherle.truezip.entry.Entry
Entry.Access, Entry.Size, Entry.Type
 
Field Summary
 
Fields inherited from interface de.schlichtherle.truezip.entry.Entry
NULL, UNKNOWN
 
Constructor Summary
FsEntry()
           
 
Method Summary
 boolean equals(Object that)
          Two file system entries are considered equal if and only if they are identical.
abstract  Set<String> getMembers()
          If this is not a directory entry, null is returned.
abstract  String getName()
          Returns a string representation of the file system entry name.
 int hashCode()
          Returns a hash code which is consistent with equals(java.lang.Object).
 String toString()
          Returns a string representation of this object for debugging and logging purposes.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.schlichtherle.truezip.entry.Entry
getSize, getTime, getType
 

Constructor Detail

FsEntry

public FsEntry()
Method Detail

getName

@NonNull
public abstract String getName()
Returns a string representation of the file system entry name.

Specified by:
getName in interface Entry
Returns:
A string representation of the file system entry name.
See Also:
EntryName.create(String)

getMembers

@Nullable
public abstract Set<String> getMembers()
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.


equals

public final boolean equals(Object that)
Two file system entries are considered equal if and only if they are identical. This can't get overriden.

Overrides:
equals in class Object

hashCode

public final int hashCode()
Returns a hash code which is consistent with equals(java.lang.Object). This can't get overriden.

Overrides:
hashCode in class Object

toString

public String toString()
Returns a string representation of this object for debugging and logging purposes.

Overrides:
toString in class Object

TrueZIP Kernel 7.0-rc2

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