public interface Index
An index for the entries in a TAR file.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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.
    Returns the identifiers of every entry in this index.
    int
    Return the size of this index in bytes.
  • Method Details

    • 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 -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

      IndexEntry entry(int i)
      Return the entry at a specified index.
      Parameters:
      i - The index of the entry.
      Returns:
      An instance of IndexEntry.