Module org.eclipse.jgit
Class PackObjectSizeIndexWriter
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.file.PackObjectSizeIndexWriter
-
public abstract class PackObjectSizeIndexWriter extends Object
Write an object index in the output stream
-
-
Field Summary
Fields Modifier and Type Field Description protected static byte[]HEADERMagic constant for the object size index file
-
Constructor Summary
Constructors Constructor Description PackObjectSizeIndexWriter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static PackObjectSizeIndexWritercreateWriter(OutputStream os, int minSize)Returns a writer for the latest index versionabstract voidwrite(List<? extends PackedObjectInfo> objs)Add the objects to the index
-
-
-
Method Detail
-
createWriter
public static PackObjectSizeIndexWriter createWriter(OutputStream os, int minSize)
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
public abstract void write(List<? extends PackedObjectInfo> objs) throws IOException
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
-
-