Module org.eclipse.jgit
Class PackObjectSizeIndexWriter
java.lang.Object
org.eclipse.jgit.internal.storage.file.PackObjectSizeIndexWriter
Write an object index in the output stream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byte[]
Magic constant for the object size index file -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PackObjectSizeIndexWriter
createWriter
(OutputStream os, int minSize) Returns a writer for the latest index versionabstract void
write
(List<? extends PackedObjectInfo> objs) Add the objects to the index
-
Field Details
-
HEADER
protected static final byte[] HEADERMagic constant for the object size index file
-
-
Constructor Details
-
PackObjectSizeIndexWriter
public PackObjectSizeIndexWriter()
-
-
Method Details
-
createWriter
Returns a writer for the latest index version- Parameters:
os
- Output stream where to write the indexminSize
- objects strictly smaller than this size won't be added to the index. Negative size won't write AT ALL. Other sizes could write an empty index.- Returns:
- the index writer
-
write
Add the objects to the index- Parameters:
objs
- objects in the pack, in sha1 order. Their position in the list matches their position in the primary index.- Throws:
IOException
- problem writing to the stream
-