private static final class FsCachingController.CacheEntry extends FsDecoratingEntry<Entry>
Entry.Access, Entry.Size, Entry.TypedelegateALL_ACCESS_SET, ALL_SIZE_SET, ALL_TYPE_SET, DIRECTORY_TYPE_SET, FILE_TYPE_SET, SPECIAL_TYPE_SET, SYMLINK_TYPE_SET, UNKNOWN| Constructor and Description |
|---|
FsCachingController.CacheEntry(Entry entry) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getMembers()
If this is not a directory entry,
null is returned. |
Set<Entry.Type> |
getTypes()
Returns a set of types implemented by this entry.
|
getName, getSize, getTime, toStringFsCachingController.CacheEntry(Entry entry)
public Set<String> getMembers()
FsEntrynull is returned.
Otherwise, a set of strings is returned which represent the base names
of the members of this directory entry.
Whether or not modifying the returned set is supported and the effect
on the file system is implementation specific.getMembers in class FsEntrypublic Set<Entry.Type> getTypes()
FsEntry
Some file system types allow an entry to implement multiple entry types.
For example, a ZIP or TAR file may contain a file entry with the name
foo and a directory entry with the name foo/.
Yes, this is strange, but shit happens!
In this case then, a virtual file system should collapse this into one
file system entry which returns true for both
isType(FILE) and isType(DIRECTORY).
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.