Interface Index


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int count()
      Return the number of entries in this index.
      IndexEntry entry​(int i)
      Return the entry at a specified index.
      int findEntry​(long msb, long lsb)
      Find an entry by its identifier.
      java.util.Set<java.util.UUID> getUUIDs()
      Returns the identifiers of every entry in this index.
      int size()
      Return the size of this index in bytes.
    • Method Detail

      • getUUIDs

        java.util.Set<java.util.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.