Package lzma.sdk.lzma
Class Encoder
- java.lang.Object
-
- lzma.sdk.lzma.Encoder
-
public class Encoder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
EMatchFinderTypeBT2
static int
EMatchFinderTypeBT4
static int
kPropSize
-
Constructor Summary
Constructors Constructor Description Encoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
code(InputStream inStream, OutputStream outStream, long inSize, long outSize, ICodeProgress progress)
void
codeOneBlock(long[] inSize, long[] outSize, boolean[] finished)
boolean
setAlgorithm(int algorithm)
boolean
setDictionarySize(int dictionarySize)
void
setEndMarkerMode(boolean endMarkerMode)
boolean
setLcLpPb(int lc, int lp, int pb)
boolean
setMatchFinder(int matchFinderIndex)
boolean
setNumFastBytes(int numFastBytes)
void
writeCoderProperties(OutputStream outStream)
-
-
-
Field Detail
-
EMatchFinderTypeBT2
public static final int EMatchFinderTypeBT2
- See Also:
- Constant Field Values
-
EMatchFinderTypeBT4
public static final int EMatchFinderTypeBT4
- See Also:
- Constant Field Values
-
kPropSize
public static final int kPropSize
- See Also:
- Constant Field Values
-
-
Method Detail
-
codeOneBlock
public void codeOneBlock(long[] inSize, long[] outSize, boolean[] finished) throws IOException
- Throws:
IOException
-
code
public void code(InputStream inStream, OutputStream outStream, long inSize, long outSize, ICodeProgress progress) throws IOException
- Throws:
IOException
-
writeCoderProperties
public void writeCoderProperties(OutputStream outStream) throws IOException
- Throws:
IOException
-
setAlgorithm
public boolean setAlgorithm(int algorithm)
-
setDictionarySize
public boolean setDictionarySize(int dictionarySize)
-
setNumFastBytes
public boolean setNumFastBytes(int numFastBytes)
-
setMatchFinder
public boolean setMatchFinder(int matchFinderIndex)
-
setLcLpPb
public boolean setLcLpPb(int lc, int lp, int pb)
-
setEndMarkerMode
public void setEndMarkerMode(boolean endMarkerMode)
-
-