java.lang.Object
org.eclipse.jgit.internal.storage.midx.MultiPackIndexWriter
Writes a collection of indexes as a multipack index.
- Since:
- 7.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongwrite(ProgressMonitor monitor, OutputStream outputStream, Map<String, PackIndex> inputs) Writes the inputs in the multipack index format in the outputStream.
-
Constructor Details
-
MultiPackIndexWriter
public MultiPackIndexWriter()
-
-
Method Details
-
write
public long write(ProgressMonitor monitor, OutputStream outputStream, Map<String, PackIndex> inputs) throws IOExceptionWrites the inputs in the multipack index format in the outputStream.- Parameters:
monitor- progress monitoroutputStream- stream to write the multipack index fileinputs- 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
-