Class ArithmeticIntegerDecoder
java.lang.Object
org.apache.pdfbox.jbig2.decoder.arithmetic.ArithmeticIntegerDecoder
This class represents the arithmetic integer decoder, described in ISO/IEC 14492:2001 (Annex A).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Arithmetic Integer Decoding Procedure, Annex A.2.int
decodeIAID
(CX cxIAID, long symCodeLen) The IAID decoding procedure, Annex A.3.private void
setPrev
(int bit)
-
Field Details
-
decoder
-
prev
private int prev
-
-
Constructor Details
-
ArithmeticIntegerDecoder
-
-
Method Details
-
decode
Arithmetic Integer Decoding Procedure, Annex A.2.- Parameters:
cxIAx
- to be decoded value- Returns:
- Decoded value.
- Throws:
IOException
- if an underlying IO operation fails
-
setPrev
private void setPrev(int bit) -
decodeIAID
The IAID decoding procedure, Annex A.3.- Parameters:
cxIAID
- - The contexts and statistics for decoding procedure.symCodeLen
- - Symbol code length.- Returns:
- The decoded value.
- Throws:
IOException
- if an underlying IO operation fails
-