Class LZMAEncoder

java.lang.Object
org.graalvm.shadowed.org.tukaani.xz.lzma.LZMAEncoder

public abstract class LZMAEncoder extends Object
  • Field Details

  • Method Details

    • getMemoryUsage

      public static int getMemoryUsage(int mode, int dictSize, int extraSizeBefore, int mf)
    • getInstance

      public static LZMAEncoder getInstance(RangeEncoder rc, int lc, int lp, int pb, int mode, int dictSize, int extraSizeBefore, int niceLen, int mf, int depthLimit, ArrayCache arrayCache)
    • putArraysToCache

      public void putArraysToCache(ArrayCache arrayCache)
    • getDistSlot

      public static int getDistSlot(int dist)
      Gets an integer [0, 63] matching the highest two bits of an integer. This is like bit scan reverse (BSR) on x86 except that this also cares about the second highest bit.
    • getLZEncoder

      public LZEncoder getLZEncoder()
    • reset

      public void reset()
    • getUncompressedSize

      public int getUncompressedSize()
    • resetUncompressedSize

      public void resetUncompressedSize()
    • encodeForLZMA1

      public void encodeForLZMA1() throws IOException
      Compress for LZMA1.
      Throws:
      IOException
    • encodeLZMA1EndMarker

      public void encodeLZMA1EndMarker() throws IOException
      Throws:
      IOException
    • encodeForLZMA2

      public boolean encodeForLZMA2()
      Compresses for LZMA2.
      Returns:
      true if the LZMA2 chunk became full, false otherwise