class PackIndexWriterV1 extends PackIndexWriter
PackIndexWriter,
PackIndexV1entries, out, packChecksum, tmp, TOC| Constructor and Description |
|---|
PackIndexWriterV1(java.io.OutputStream dst) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static boolean |
canStore(PackedObjectInfo oe) |
protected void |
writeImpl()
Writes the index file to
PackIndexWriter.out. |
createOldestPossible, createVersion, oldestPossibleFormat, write, writeChecksumFooter, writeFanOutTable, writeTOCstatic boolean canStore(PackedObjectInfo oe)
protected void writeImpl()
throws java.io.IOException
PackIndexWriter.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 PackIndexWriter.entries collection may be iterated over more than once if
necessary. Implementors therefore have complete control over the data.
writeImpl in class PackIndexWriterjava.io.IOException - an error occurred while writing to the output stream, or this
index format cannot store the object data supplied.