Class MultiPackIndexWriter

java.lang.Object
org.eclipse.jgit.internal.storage.midx.MultiPackIndexWriter

public class MultiPackIndexWriter extends Object
Writes a collection of indexes as a multipack index.

See multipack index format spec

Since:
7.2
  • Constructor Details

    • MultiPackIndexWriter

      public MultiPackIndexWriter()
  • Method Details

    • write

      public long write(ProgressMonitor monitor, OutputStream outputStream, Map<String,PackIndex> inputs) throws IOException
      Writes the inputs in the multipack index format in the outputStream.
      Parameters:
      monitor - progress monitor
      outputStream - stream to write the multipack index file
      inputs - pairs of name and index for each pack to include in the multipack index.
      Returns:
      bytes written into the stream
      Throws:
      IOException - Error writing to the stream