Class PackIndexWriterV1
java.lang.Object
org.eclipse.jgit.internal.storage.file.PackIndexWriter
org.eclipse.jgit.internal.storage.file.PackIndexWriterV1
Creates the version 1 (old style) pack table of contents files.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.jgit.internal.storage.file.PackIndexWriter
entries, out, packChecksum, tmp, TOC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static boolean
protected void
Writes the index file toPackIndexWriter.out
.Methods inherited from class org.eclipse.jgit.internal.storage.file.PackIndexWriter
createOldestPossible, createVersion, oldestPossibleFormat, write, writeChecksumFooter, writeFanOutTable, writeTOC
-
Constructor Details
-
PackIndexWriterV1
PackIndexWriterV1(OutputStream dst)
-
-
Method Details
-
canStore
-
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.
-