Package org.eclipse.jgit.lib
Class InflaterCache
java.lang.Object
org.eclipse.jgit.lib.InflaterCache
Creates zlib based inflaters as necessary for object decompression.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Inflater[]
private static int
private static final int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SZ
private static final int SZ- See Also:
-
inflaterCache
-
openInflaterCount
private static int openInflaterCount
-
-
Constructor Details
-
InflaterCache
private InflaterCache()
-
-
Method Details
-
get
Obtain an Inflater for decompression.Inflaters obtained through this cache should be returned (if possible) by
release(Inflater)
to avoid garbage collection and reallocation.- Returns:
- an available inflater. Never null.
-
getImpl
-
release
Release an inflater previously obtained from this cache.- Parameters:
i
- the inflater to return. May be null, in which case this method does nothing.
-
releaseImpl
-