- 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 TypeMethodDescriptionvoidwrite(List<? extends PackedObjectInfo> toStore, byte[] packDataChecksum) Write all object entries to the index stream.
-
Method Details
-
write
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 usingPackedObjectInfo's nativeComparableimplementation.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.
-