| protected void writeImpl() throws IOException Implements abstract org.eclipse.jgit.internal.storage.file.BasePackIndexWriter.writeImpl.
Doc from org.eclipse.jgit.internal.storage.file.BasePackIndexWriter.writeImpl.
Writes the index file to 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
the entries collection may be iterated over more than once if
necessary. Implementors therefore have complete control over the data.
- Annotations
- @Override
- Exceptions
- IOException:
- an error occurred while writing to the output stream, or this index format cannot store the object data supplied.
|