public abstract class LZMAEncoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MODE_FAST |
static int |
MODE_NORMAL |
Modifier and Type | Method and Description |
---|---|
void |
encodeForLZMA1()
Compress for LZMA1.
|
boolean |
encodeForLZMA2()
Compresses for LZMA2.
|
void |
encodeLZMA1EndMarker() |
static int |
getDistSlot(int dist)
Gets an integer [0, 63] matching the highest two bits of an integer.
|
static LZMAEncoder |
getInstance(RangeEncoder rc,
int lc,
int lp,
int pb,
int mode,
int dictSize,
int extraSizeBefore,
int niceLen,
int mf,
int depthLimit) |
LZEncoder |
getLZEncoder() |
static int |
getMemoryUsage(int mode,
int dictSize,
int extraSizeBefore,
int mf) |
int |
getUncompressedSize() |
void |
reset() |
void |
resetUncompressedSize() |
public static final int MODE_FAST
public static final int MODE_NORMAL
public static int getMemoryUsage(int mode, int dictSize, int extraSizeBefore, int mf)
public static LZMAEncoder getInstance(RangeEncoder rc, int lc, int lp, int pb, int mode, int dictSize, int extraSizeBefore, int niceLen, int mf, int depthLimit)
public static int getDistSlot(int dist)
public LZEncoder getLZEncoder()
public void reset()
public int getUncompressedSize()
public void resetUncompressedSize()
public void encodeForLZMA1() throws java.io.IOException
java.io.IOException
public void encodeLZMA1EndMarker() throws java.io.IOException
java.io.IOException
public boolean encodeForLZMA2()