E - The type of the decorated entries.@ThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) 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 entry)
Constructs a new decorating file system 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 entry)
entry - the decorated entry.public String getName()
FsEntryfile system entry name.getName in interface EntrygetName in class FsEntryfile system entry name.EntryName.create(String)public long getSize(Entry.Size type)
EntryEntry.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)
Entrytype - the type of the access time to return.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.