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

public Class ArithmeticIntegerDecoder

extends Object
Class Inheritance
Imports
java.io.IOException

This class represents the arithmetic integer decoder, described in ISO/IEC 14492:2001 (Annex A).

Field Summary

Modifier and TypeField and Description
private final ArithmeticDecoder
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

Decoded value.
decode
(CX
to be decoded value
cxIAx
)

Arithmetic Integer Decoding Procedure, Annex A.2.

public int

Returns:

The decoded value.
decodeIAID
(CX
- The contexts and statistics for decoding procedure.
cxIAID
,
long
- Symbol code length.
symCodeLen
)

The IAID decoding procedure, Annex A.3.

private void
setPrev(int bit)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

decoderback to summary
private final ArithmeticDecoder decoder
prevback to summary
private int prev

Constructor Detail

ArithmeticIntegerDecoderback to summary
public ArithmeticIntegerDecoder(ArithmeticDecoder decoder)

Method Detail

decodeback to summary
public long decode(CX cxIAx) throws IOException

Arithmetic Integer Decoding Procedure, Annex A.2.

Parameters
cxIAx:CX

to be decoded value

Returns:long

Decoded value.

Exceptions
IOException:
if an underlying IO operation fails
decodeIAIDback to summary
public int decodeIAID(CX cxIAID, long symCodeLen) throws IOException

The IAID decoding procedure, Annex A.3.

Parameters
cxIAID:CX

- The contexts and statistics for decoding procedure.

symCodeLen:long

- Symbol code length.

Returns:int

The decoded value.

Exceptions
IOException:
if an underlying IO operation fails
setPrevback to summary
private void setPrev(int bit)