|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.entry.DecoratingEntry<E>
E - The type of the decorated entries.@ThreadSafe public abstract class DecoratingEntry<E extends Entry>
An abstract decorator for an entry.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface de.schlichtherle.truezip.entry.Entry |
|---|
Entry.Access, Entry.Size, Entry.Type |
| Field Summary | |
|---|---|
protected E |
delegate
The decorated entry. |
| Fields inherited from interface de.schlichtherle.truezip.entry.Entry |
|---|
NULL, UNKNOWN |
| Constructor Summary | |
|---|---|
protected |
DecoratingEntry(E entry)
Constructs a new decorating file system entry. |
| Method Summary | |
|---|---|
String |
getName()
Returns the 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. |
String |
toString()
Returns a string representation of this object for debugging and logging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@NonNull protected final E extends Entry delegate
| Constructor Detail |
|---|
protected DecoratingEntry(@NonNull
E entry)
entry - the decorated entry.| Method Detail |
|---|
public String getName()
EntryEntryName.SEPARATOR_CHAR).
This implies that a segment cannot contain separator characters.
".") or
dot-dot ("..") segments which represent the current or
parent segment respectively.
"foo/bar/" and
"./abc/../foo/./def/./../bar/." both refer to the same entry
when being parsed.
getName in interface EntryEntryName.create(java.lang.String, java.lang.String)public Entry.Type getType()
Entrynull if and only if this entry
does not exist.
getType in interface Entrynull if and only if this entry
does not exist.public long getSize(Entry.Size type)
Entry
getSize in interface EntryEntry.UNKNOWN if not specified or the type is unsupported.
This method may not be meaningful for non-file entries.public long getTime(Entry.Access type)
Entry
getTime in interface Entrypublic String toString()
toString in class Object
|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||