Interface Index
-
public interface IndexAn index for the entries in a TAR file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcount()Return the number of entries in this index.IndexEntryentry(int i)Return the entry at a specified index.intfindEntry(long msb, long lsb)Find an entry by its identifier.Set<UUID>getUUIDs()Returns the identifiers of every entry in this index.intsize()Return the size of this index in bytes.
-
-
-
Method Detail
-
getUUIDs
Set<UUID> 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
-1if 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
IndexEntry entry(int i)
Return the entry at a specified index.- Parameters:
i- The index of the entry.- Returns:
- An instance of
IndexEntry.
-
-