Class ArithmeticDecoder
- java.lang.Object
-
- org.apache.pdfbox.jbig2.decoder.arithmetic.ArithmeticDecoder
-
public class ArithmeticDecoder extends java.lang.Object
This class represents the arithmetic decoder, described in ISO/IEC 14492:2001 in E.3
-
-
Constructor Summary
Constructors Constructor Description ArithmeticDecoder(javax.imageio.stream.ImageInputStream iis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
byteIn()
int
decode(CX cx)
(package private) int
getA()
(package private) long
getC()
private void
init()
private int
lpsExchange(CX cx, int icx, int qeValue)
private int
mpsExchange(CX cx, int icx)
private void
renormalize()
-
-
-
Method Detail
-
init
private void init() throws java.io.IOException
- Throws:
java.io.IOException
-
decode
public int decode(CX cx) throws java.io.IOException
- Throws:
java.io.IOException
-
byteIn
private void byteIn() throws java.io.IOException
- Throws:
java.io.IOException
-
renormalize
private void renormalize() throws java.io.IOException
- Throws:
java.io.IOException
-
mpsExchange
private int mpsExchange(CX cx, int icx)
-
lpsExchange
private int lpsExchange(CX cx, int icx, int qeValue)
-
getA
int getA()
-
getC
long getC()
-
-