Class PackIndexWriterV2
java.lang.Object
org.eclipse.jgit.internal.storage.file.PackIndexWriter
org.eclipse.jgit.internal.storage.file.PackIndexWriterV2
Creates the version 2 pack table of contents files.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
Fields inherited from class org.eclipse.jgit.internal.storage.file.PackIndexWriter
entries, out, packChecksum, tmp, TOC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
protected void
Writes the index file toPackIndexWriter.out
.private void
private void
private void
Methods inherited from class org.eclipse.jgit.internal.storage.file.PackIndexWriter
createOldestPossible, createVersion, oldestPossibleFormat, write, writeChecksumFooter, writeFanOutTable, writeTOC
-
Field Details
-
MAX_OFFSET_32
private static final int MAX_OFFSET_32- See Also:
-
IS_OFFSET_64
private static final int IS_OFFSET_64- See Also:
-
-
Constructor Details
-
PackIndexWriterV2
PackIndexWriterV2(OutputStream dst)
-
-
Method Details
-
writeImpl
Writes the index file toPackIndexWriter.out
.Implementations should go something like:
writeFanOutTable(); for (final PackedObjectInfo po : entries) writeOneEntry(po); writeChecksumFooter();
Where the logic for
writeOneEntry
is specific to the index format in use. Additional headers/footers may be used if necessary and thePackIndexWriter.entries
collection may be iterated over more than once if necessary. Implementors therefore have complete control over the data.- Specified by:
writeImpl
in classPackIndexWriter
- Throws:
IOException
- an error occurred while writing to the output stream, or this index format cannot store the object data supplied.
-
writeObjectNames
- Throws:
IOException
-
writeCRCs
- Throws:
IOException
-
writeOffset32
- Throws:
IOException
-
writeOffset64
- Throws:
IOException
-