Interface PackIndexWriter

All Known Implementing Classes:
BasePackIndexWriter

public interface PackIndexWriter
Represents a function that accepts a collection of objects to write into a primary pack index storage format.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(List<? extends PackedObjectInfo> toStore, byte[] packDataChecksum)
    Write all object entries to the index stream.
  • Method Details

    • write

      void write(List<? extends PackedObjectInfo> toStore, byte[] packDataChecksum) throws IOException
      Write all object entries to the index stream.
      Parameters:
      toStore - sorted list of objects to store in the index. The caller must have previously sorted the list using PackedObjectInfo's native Comparable implementation.
      packDataChecksum - checksum signature of the entire pack data content. This is traditionally the last 20 bytes of the pack file's own stream.
      Throws:
      IOException - an error occurred while writing to the output stream, or the underlying format cannot store the object data supplied.