Top Description Fields Constructors Methods
org.apache.pdfbox.jbig2.decoder.arithmetic

public Class ArithmeticDecoder

extends Object
Class Inheritance
Imports
java.io.IOException, javax.imageio.stream.ImageInputStream

This class represents the arithmetic decoder, described in ISO/IEC 14492:2001 in E.3

Field Summary

Modifier and TypeField and Description
private int
a

private int
b

private long
c

private int
private final ImageInputStream
private static final int[][]
private long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public int
decode(CX cx)

pack-priv int
getA()

pack-priv long
getC()

private void
init()

private int
lpsExchange(CX cx, int icx, int qeValue)

private int
mpsExchange(CX cx, int icx)

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aback to summary
private int a
bback to summary
private int b
cback to summary
private long c
ctback to summary
private int ct
iisback to summary
private final ImageInputStream iis
QEback to summary
private static final int[][] QE
streamPos0back to summary
private long streamPos0

Constructor Detail

ArithmeticDecoderback to summary
public ArithmeticDecoder(ImageInputStream iis) throws IOException

Method Detail

byteInback to summary
private void byteIn() throws IOException
decodeback to summary
public int decode(CX cx) throws IOException
getAback to summary
pack-priv int getA()
getCback to summary
pack-priv long getC()
initback to summary
private void init() throws IOException
lpsExchangeback to summary
private int lpsExchange(CX cx, int icx, int qeValue)
mpsExchangeback to summary
private int mpsExchange(CX cx, int icx)
renormalizeback to summary
private void renormalize() throws IOException