Class PackBitmapIndexWriterV1
java.lang.Object
org.eclipse.jgit.internal.storage.file.PackBitmapIndexWriterV1
Creates the version 1 pack bitmap index files.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates the version 1 pack bitmap index files. -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(PackBitmapIndexBuilder bitmaps, byte[] packDataChecksum) Write all object entries to the index stream.private voidwriteBitmap(com.googlecode.javaewah.EWAHCompressedBitmap bitmap) private voidprivate voidwriteBitmaps(PackBitmapIndexBuilder bitmaps) private voidwriteBody(PackBitmapIndexBuilder bitmaps) private voidprivate voidwriteHeader(int options, int bitmapCount, byte[] packDataChecksum)
-
Field Details
-
out
-
dataOutput
-
-
Constructor Details
-
PackBitmapIndexWriterV1
Creates the version 1 pack bitmap index files.- Parameters:
dst- the output stream to which the index will be written.
-
-
Method Details
-
write
Write all object entries to the index stream.After writing the stream passed to the factory is flushed but remains open. Callers are always responsible for closing the output stream.
- Parameters:
bitmaps- the index data for the bitmapspackDataChecksum- checksum signature of the entire pack data content. This is traditionally the last 20 bytes of the pack file's own stream.- Throws:
IOException- an error occurred while writing to the output stream, or this index format cannot store the object data supplied.
-
writeHeader
- Throws:
IOException
-
writeBody
- Throws:
IOException
-
writeBitmap
- Throws:
IOException
-
writeBitmaps
- Throws:
IOException
-
writeBitmapEntry
- Throws:
IOException
-