Top Description Methods
org.eclipse.jgit.internal.storage.pack

public Interface PackIndexWriter

Known Direct Implementers
org.eclipse.jgit.internal.storage.file.BasePackIndexWriter
Imports
java.io.IOException, java.util.List, org.eclipse.jgit.transport.PackedObjectInfo

Represents a function that accepts a collection of objects to write into a primary pack index storage format.

Method Summary

Modifier and TypeMethod and Description
public void
write(List<? extends PackedObjectInfo>
sorted list of objects to store in the index. The caller must have previously sorted the list using org.eclipse.jgit.transport.PackedObjectInfo's native java.lang.Comparable implementation.
toStore
,
byte[]
checksum signature of the entire pack data content. This is traditionally the last 20 bytes of the pack file's own stream.
packDataChecksum
)

Write all object entries to the index stream.

Method Detail

writeback to summary
public void write(List<? extends PackedObjectInfo> toStore, byte[] packDataChecksum) throws IOException

Write all object entries to the index stream.

Parameters
toStore:List<? extends PackedObjectInfo>

sorted list of objects to store in the index. The caller must have previously sorted the list using org.eclipse.jgit.transport.PackedObjectInfo's native java.lang.Comparable implementation.

packDataChecksum:byte[]

checksum signature of the entire pack data content. This is traditionally the last 20 bytes of the pack file's own stream.

Exceptions
IOException:
an error occurred while writing to the output stream, or the underlying format cannot store the object data supplied.