Extract the Inflater caching from WindowCache
commitde1a1a08764825c92a170c7130d6328823cce55e
authorShawn O. Pearce <spearce@spearce.org>
Sun, 18 May 2008 18:53:34 +0000 (18 14:53 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 18 May 2008 19:39:53 +0000 (18 15:39 -0400)
tree8474491f63fa3943013aa63959d629304429911d
parent3a6177ae98fea82dbba262103250ec0e6b2df5f2
Extract the Inflater caching from WindowCache

We need inflaters in more locations than just for PackFile.  They
are also used in IndexPack and in UnpackedObjectLoader, and will
likely find their way into other locations of code too.  By moving
this out into its own cache we can make it easier for library level
code to acquire a cached Inflater.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/InflaterCache.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java
org.spearce.jgit/src/org/spearce/jgit/lib/WindowedFile.java
org.spearce.jgit/src/org/spearce/jgit/transport/IndexPack.java