Always use a single WindowCache for the entire JVM
[egit/imyousuf.git] / org.spearce.jgit / src / org / spearce / jgit / lib / DeltaOfsPackedObjectLoader.java
blob93f39bb80cff6367e7db71f77a8a01644c465ece
1 package org.spearce.jgit.lib;
3 import java.io.IOException;
5 /** Reads a deltified object which uses an offset to find its base. */
6 class DeltaOfsPackedObjectLoader extends DeltaPackedObjectLoader {
7 private final long deltaBase;
9 DeltaOfsPackedObjectLoader(final WindowCursor curs,
10 final PackFile pr, final long offset,
11 final int deltaSz, final long base) {
12 super(curs, pr, offset, deltaSz);
13 deltaBase = base;
16 protected PackedObjectLoader getBaseLoader() throws IOException {
17 return pack.resolveBase(curs, deltaBase);