|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Entry
Represents an entry in an entry container, e.g. an archive file or a file system etc.
In general, if a property has an unknown value, its getter method must
return the value UNKNOWN or null respectively.
| Nested Class Summary | |
|---|---|
static class |
Entry.Access
Defines the types of access information for an entry. |
static class |
Entry.Size
Defines the types of size information for an entry. |
static class |
Entry.Type
Defines the type of file system entry. |
| Field Summary | |
|---|---|
static Entry |
NULL
The NULL entry is a dummy entry which may be useful in
situations where a non-null entry is expected but none is
available. |
static byte |
UNKNOWN
The unknown value for numeric properties, which is -1. |
| Method Summary | |
|---|---|
String |
getName()
Returns the entry name. |
long |
getSize(Entry.Size type)
Returns the size of this entry. |
long |
getTime(Entry.Access type)
Returns the last access time of this entry. |
Entry.Type |
getType()
Returns the type of this entry or null if and only if this entry
does not exist. |
| Field Detail |
|---|
static final Entry NULL
NULL entry is a dummy entry which may be useful in
situations where a non-null entry is expected but none is
available.
The NULL entry has "/dev/random" as its name,
NULL as its type and UNKNOWN for any other
property.
static final byte UNKNOWN
| Method Detail |
|---|
@NonNull 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(String)@Nullable Entry.Type getType()
null if and only if this entry
does not exist.
null if and only if this entry
does not exist.
long getSize(@NonNull
Entry.Size type)
UNKNOWN if not specified or the type is unsupported.
This method may not be meaningful for non-file entries.
long getTime(@NonNull
Entry.Access type)
|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||