java.lang.Object
net.i2p.data.DataHelper.DecompressCacheHolder
Enclosing class:
DataHelper

private static final class DataHelper.DecompressCacheHolderextends Object
The shared output buffer for DataHelper.decompress(byte[]).

A holder class rather than a static field of DataHelper, so the lookup is done once and I2PAppContext is still not initialized until the first call. The entry size is invariant, so the cache never needs resizing.

  • Field Details

    • CACHE

      private static final ByteCache CACHE
      Not a DataHelper static field - see the class comment.
  • Constructor Details

    • DecompressCacheHolder

      private DecompressCacheHolder()
      Not called, the cache holder class is never instantiated.