ArithmeticDecoder
Overview
ArithmeticDecoder is a class in Aspose.PDF FOSS for Java.
Adaptive binary arithmetic decoder for JBIG2 (MQ-coder).
This class provides 7 methods for working with ArithmeticDecoder objects in Java programs.
Available methods include: ArithmeticDecoder, decode, decodeIAID, decodeInteger, getBytePointer, resetAllContexts, resetContext.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: bytePointer.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
bytePointer | int | Read | Returns the current byte position in the data stream. |
Methods
| Signature | Description |
|---|---|
ArithmeticDecoder(data: byte[], offset: int, numContexts: int) | Creates and initializes a new arithmetic decoder. |
decode(cx: int) → int | Decodes one binary decision using the specified context. |
decodeIAID(cxIAID: int, symCodeLen: int) → int | Decodes an integer value using the IAID (Integer Arithmetic Integer Decoder) |
| procedure specified in §A.3. | |
decodeInteger(cxIA: int) → int | Decodes an integer using the Integer Arithmetic Decoding procedure (§A.2). |
resetContext(cx: int) | Resets a context to its default state (I=0, MPS=0). |
resetAllContexts() | Resets all contexts to their default state. |
getBytePointer() → int | Returns the current byte position in the data stream. |