Package com.github.junrar.unpack.ppm
Class RangeCoder
- java.lang.Object
-
- com.github.junrar.unpack.ppm.RangeCoder
-
public class RangeCoder extends java.lang.ObjectDOCUMENT ME- Version:
- $LastChangedRevision$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRangeCoder.SubRange
-
Field Summary
Fields Modifier and Type Field Description static intBOTprivate longcodeprivate longlowprivate longrangeprivate RangeCoder.SubRangesubRangestatic intTOPprivate static longuintMaskprivate UnpackunpackRead
-
Constructor Summary
Constructors Constructor Description RangeCoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidariDecNormalize()voiddecode()private intgetChar()intgetCurrentCount()longgetCurrentShiftCount(int SHIFT)RangeCoder.SubRangegetSubRange()voidinitDecoder(Unpack unpackRead)java.lang.StringtoString()
-
-
-
Field Detail
-
TOP
public static final int TOP
- See Also:
- Constant Field Values
-
BOT
public static final int BOT
- See Also:
- Constant Field Values
-
uintMask
private static final long uintMask
- See Also:
- Constant Field Values
-
low
private long low
-
code
private long code
-
range
private long range
-
subRange
private final RangeCoder.SubRange subRange
-
unpackRead
private Unpack unpackRead
-
-
Method Detail
-
getSubRange
public RangeCoder.SubRange getSubRange()
-
initDecoder
public void initDecoder(Unpack unpackRead) throws java.io.IOException, RarException
- Throws:
java.io.IOExceptionRarException
-
getCurrentCount
public int getCurrentCount()
-
getCurrentShiftCount
public long getCurrentShiftCount(int SHIFT)
-
decode
public void decode()
-
getChar
private int getChar() throws java.io.IOException, RarException- Throws:
java.io.IOExceptionRarException
-
ariDecNormalize
public void ariDecNormalize() throws java.io.IOException, RarException- Throws:
java.io.IOExceptionRarException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-