E
- The type of the decorated entries.@ThreadSafe public abstract class FsDecoratingEntry<E extends Entry> extends FsEntry
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 |
FsDecoratingEntry(E delegate)
Constructs a new decorating entry.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns a string representation of the
file system 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 FsDecoratingEntry(E delegate)
delegate
- the entry to decorate.public String getName()
FsEntry
file system entry name
.getName
in interface Entry
getName
in class FsEntry
file system entry name
.EntryName.create(URI)
public long getSize(Entry.Size type)
Entry
Entry.Type.FILE
entries.type
- the type of the size to return.Entry.UNKNOWN
if not specified or the type is unsupported.public long getTime(Entry.Access type)
Entry
type
- the type of the access time to return.Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.