ArithmeticDecoder

ArithmeticDecoder

Overview

ArithmeticDecoder เป็นคลาสใน Aspose.PDF FOSS สําหรับ Java.

การแก้ไขคํานวณไบนารีสําหรับ JBIG2 (MQ-coder).

หมวดนี้ให้ 7 วิธีในการทํางานกับวัตถุ ArithmeticDecoder ในโปรแกรม Java. วิธีการที่ใช้ได้แก่: ArithmeticDecoder, decode, decodeIAID, decodeInteger, getBytePointer, resetAllContexts, resetContext. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: bytePointer.

Properties

NameTypeAccessDescription
bytePointerintReadกลับตําแหน่งไบต์ปัจจุบันในกระแสข้อมูล.

Methods

SignatureDescription
ArithmeticDecoder(data: byte[], offset: int, numContexts: int)สร้างและเริ่มต้นการออกแบบคํานวณใหม่.
decode(cx: int)intการแยกคําตอบแบบไบนารีหนึ่งการใช้บริเวณที่กําหนดไว้.
decodeIAID(cxIAID: int, symCodeLen: int)intการถอดค่าตัวเต็ม โดยใช้วิธีการ IAID (Integer Arithmetic Integer Decoder) ที่ระบุใน §A.3.
decodeInteger(cxIA: int)intการแยกเลขตัวเต็มโดยใช้วิธีการแก้ไขจํานวนเต็ม (§A.2).
resetContext(cx: int)ยกตั้งตัวการใช้งานเป็นสภาพตามปกติ (I=0, MPS=0).
resetAllContexts()เปลี่ยนสถานะทั้งหมดเป็นภาวะตั้งค่าเดิม.
getBytePointer()intกลับตําแหน่งไบต์ปัจจุบันในกระแสข้อมูล.

See Also

 ภาษาไทย