E - the type of the decorated entries.@ThreadSafe public abstract class DecoratingEntry<E extends Entry> extends Object implements Entry
Entry.Access, Entry.Size, Entry.Type| Modifier and Type | Field and Description |
|---|---|
protected E |
delegate
The decorated entry.
|
ALL_ACCESS_SET, ALL_SIZE_SET, ALL_TYPE_SET, DIRECTORY_TYPE_SET, FILE_TYPE_SET, SPECIAL_TYPE_SET, SYMLINK_TYPE_SET, UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
DecoratingEntry(E entry)
Constructs a new decorating file system entry.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the entry name.
|
long |
getSize(Entry.Size type)
Returns the size of the given type for this entry.
|
long |
getTime(Entry.Access type)
Returns the time of the given access type for this entry.
|
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
protected DecoratingEntry(E entry)
entry - the decorated entry.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(URI)public long getSize(Entry.Size type)
EntryEntry.Type.FILE entries.getSize in interface Entrytype - the type of the size to return.Entry.UNKNOWN if not specified or the type is unsupported.public long getTime(Entry.Access type)
EntryCopyright © 2005-2013 Schlichtherle IT Services. All Rights Reserved.