Interface Index
public interface Index
An index for the entries in a TAR file.
-
Method Summary
Modifier and TypeMethodDescriptionint
count()
Return the number of entries in this index.entry
(int i) Return the entry at a specified index.int
findEntry
(long msb, long lsb) Find an entry by its identifier.getUUIDs()
Returns the identifiers of every entry in this index.int
size()
Return the size of this index in bytes.
-
Method Details
-
getUUIDs
Returns the identifiers of every entry in this index.- Returns:
- A set of
UUID
.
-
findEntry
int findEntry(long msb, long lsb) Find an entry by its identifier.- Parameters:
msb
- The most significant bits of the identifier.lsb
- The least significant bits of the identifier.- Returns:
- The index of the entry in this index, or
-1
if the entry was not found.
-
size
int size()Return the size of this index in bytes.- Returns:
- The size of this index in bytes.
-
count
int count()Return the number of entries in this index.- Returns:
- The number of entries in this index.
-
entry
Return the entry at a specified index.- Parameters:
i
- The index of the entry.- Returns:
- An instance of
IndexEntry
.
-