Top Description Fields Constructors Methods
org.eclipse.jgit.internal.storage.file

public Class PackBitmapIndexWriterV1

extends Object
implements PackBitmapIndexWriter
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.internal.storage.pack.PackBitmapIndexWriter
Imports
java.io.BufferedOutputStream, .DataOutput, .IOException, .OutputStream, java.security.DigestOutputStream, java.text.MessageFormat, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.internal.storage.file.PackBitmapIndexBuilder.StoredEntry, org.eclipse.jgit.internal.storage.pack.PackBitmapIndexWriter, org.eclipse.jgit.lib.Constants, com.googlecode.javaewah.EWAHCompressedBitmap

Creates the version 1 pack bitmap index files.
See Also
PackBitmapIndexV1

Field Summary

Modifier and TypeField and Description
private final DataOutput
private final DigestOutputStream

Constructor Summary

AccessConstructor and Description
public
PackBitmapIndexWriterV1(final OutputStream
the output stream to which the index will be written.
dst
)

Creates the version 1 pack bitmap index files.

Method Summary

Modifier and TypeMethod and Description
public void
write(PackBitmapIndexBuilder
the index data for the bitmaps
bitmaps
,
byte[]
checksum signature of the entire pack data content. This is traditionally the last 20 bytes of the pack file's own stream.
packDataChecksum
)

Implements org.eclipse.jgit.internal.storage.pack.PackBitmapIndexWriter.write.

Write all object entries to the index stream.

private void
private void
private void
private void
private void
private void
writeHeader(int options, int bitmapCount, byte[] packDataChecksum)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dataOutputback to summary
private final DataOutput dataOutput
outback to summary
private final DigestOutputStream out

Constructor Detail

PackBitmapIndexWriterV1back to summary
public PackBitmapIndexWriterV1(final OutputStream dst)

Creates the version 1 pack bitmap index files.

Parameters
dst:OutputStream

the output stream to which the index will be written.

Method Detail

writeback to summary
public void write(PackBitmapIndexBuilder bitmaps, byte[] packDataChecksum) throws IOException

Implements org.eclipse.jgit.internal.storage.pack.PackBitmapIndexWriter.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:PackBitmapIndexBuilder

the index data for the bitmaps

packDataChecksum:byte[]

checksum signature of the entire pack data content. This is traditionally the last 20 bytes of the pack file's own stream.

Annotations
@Override
Exceptions
IOException:
an error occurred while writing to the output stream, or this index format cannot store the object data supplied.
writeBitmapback to summary
private void writeBitmap(EWAHCompressedBitmap bitmap) throws IOException
writeBitmapEntryback to summary
private void writeBitmapEntry(PackBitmapIndexBuilder.StoredEntry entry) throws IOException
writeBitmapsback to summary
private void writeBitmaps(PackBitmapIndexBuilder bitmaps) throws IOException
writeBodyback to summary
private void writeBody(PackBitmapIndexBuilder bitmaps) throws IOException
writeFooterback to summary
private void writeFooter() throws IOException
writeHeaderback to summary
private void writeHeader(int options, int bitmapCount, byte[] packDataChecksum) throws IOException