Class Encoder
- java.lang.Object
-
- org.glassfish.grizzly.compression.lzma.impl.Encoder
-
public class Encoder extends Object
RangeEncoder- Author:
- Igor Pavlov
-
-
Field Summary
Fields Modifier and Type Field Description static intEMatchFinderTypeBT2static intEMatchFinderTypeBT4static intkNumLenSpecSymbols
-
Constructor Summary
Constructors Constructor Description Encoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcode(LZMAEncoder.LZMAOutputState state, long inSize, long outSize)voidcodeOneBlock(long[] inSize, long[] outSize, boolean[] finished)booleansetAlgorithm(int algorithm)booleansetDictionarySize(int dictionarySize)voidsetEndMarkerMode(boolean endMarkerMode)booleansetLcLpPb(int lc, int lp, int pb)booleansetMatchFinder(int matchFinderIndex)booleansetNumFastBytes(int numFastBytes)voidwriteCoderProperties(Buffer dst)
-
-
-
Field Detail
-
EMatchFinderTypeBT2
public static final int EMatchFinderTypeBT2
- See Also:
- Constant Field Values
-
EMatchFinderTypeBT4
public static final int EMatchFinderTypeBT4
- See Also:
- Constant Field Values
-
kNumLenSpecSymbols
public static final int kNumLenSpecSymbols
- 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(LZMAEncoder.LZMAOutputState state, long inSize, long outSize) throws IOException
- Throws:
IOException
-
writeCoderProperties
public void writeCoderProperties(Buffer dst) 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)
-
-