public final class DfsPackFile extends Object
Modifier and Type | Method and Description |
---|---|
void |
close()
Release all memory used by this DfsPackFile instance.
|
long |
getCachedSize() |
DfsPackDescription |
getPackDescription() |
PackIndex |
getPackIndex(DfsReader ctx)
Get the PackIndex for this PackFile.
|
boolean |
hasObject(DfsReader ctx,
AnyObjectId id)
Check if an object is stored within this pack.
|
boolean |
isIndexLoaded() |
public DfsPackDescription getPackDescription()
public boolean isIndexLoaded()
public long getCachedSize()
public PackIndex getPackIndex(DfsReader ctx) throws IOException
ctx
- reader context to support reading from the backing store if
the index is not already loaded in memory.IOException
- the pack index is not available, or is corrupt.public boolean hasObject(DfsReader ctx, AnyObjectId id) throws IOException
ctx
- reader context to support reading from the backing store if
the index is not already loaded in memory.id
- object to be located.IOException
- the pack index is not available, or is corrupt.public void close()
Copyright © 2015 Eclipse JGit Project. All rights reserved.