public interface Entry
In general, if a property has an unknown value, its getter method must
return the value UNKNOWN
or null
respectively.
Some constants of this interface are unmodifiable sets of enums. These are convenient to use for loops like this:
for (Type type : ALL_TYPE_SET)
...;
Modifier and Type | Interface and Description |
---|---|
static class |
Entry.Access
Defines the type of access information for an entry.
|
static class |
Entry.Size
Defines the type of size information for an entry.
|
static class |
Entry.Type
Defines the type of entry.
|
Modifier and Type | Field and Description |
---|---|
static Set<Entry.Access> |
ALL_ACCESS_SET
An unmodifiable set of all enums in
Entry.Access . |
static Set<Entry.Size> |
ALL_SIZE_SET
An unmodifiable set of all enums in
Entry.Size . |
static Set<Entry.Type> |
ALL_TYPE_SET
An unmodifiable set of all enums in
Entry.Type . |
static Set<Entry.Type> |
DIRECTORY_TYPE_SET
An unmodifiable set of just
Entry.Type.DIRECTORY . |
static Set<Entry.Type> |
FILE_TYPE_SET
An unmodifiable set of just
Entry.Type.FILE . |
static Set<Entry.Type> |
SPECIAL_TYPE_SET
An unmodifiable set of just
Entry.Type.SPECIAL . |
static Set<Entry.Type> |
SYMLINK_TYPE_SET
An unmodifiable set of just
Entry.Type.SYMLINK . |
static byte |
UNKNOWN
The unknown value for numeric properties, which is -1.
|
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.
|
static final Set<Entry.Access> ALL_ACCESS_SET
Entry.Access
.static final Set<Entry.Size> ALL_SIZE_SET
Entry.Size
.static final Set<Entry.Type> ALL_TYPE_SET
Entry.Type
.static final Set<Entry.Type> DIRECTORY_TYPE_SET
Entry.Type.DIRECTORY
.static final Set<Entry.Type> FILE_TYPE_SET
Entry.Type.FILE
.static final Set<Entry.Type> SPECIAL_TYPE_SET
Entry.Type.SPECIAL
.static final Set<Entry.Type> SYMLINK_TYPE_SET
Entry.Type.SYMLINK
.static final byte UNKNOWN
String getName()
EntryName.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.EntryName.create(URI)
long getSize(Entry.Size type)
Entry.Type.FILE
entries.type
- the type of the size to return.UNKNOWN
if not specified or the type is unsupported.long getTime(Entry.Access type)
type
- the type of the access time to return.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.