Package org.jpedal.jbig2.decoders
Class HuffmanDecoder
java.lang.Object
org.jpedal.jbig2.decoders.HuffmanDecoder
HuffmanDecoder class.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int[][]
ConstanthuffmanTableA
static final int[][]
ConstanthuffmanTableB
static final int[][]
ConstanthuffmanTableC
static final int[][]
ConstanthuffmanTableD
static final int[][]
ConstanthuffmanTableE
static final int[][]
ConstanthuffmanTableF
static final int[][]
ConstanthuffmanTableG
static final int[][]
ConstanthuffmanTableH
static final int[][]
ConstanthuffmanTableI
static final int[][]
ConstanthuffmanTableJ
static final int[][]
ConstanthuffmanTableK
static final int[][]
ConstanthuffmanTableL
static final int[][]
ConstanthuffmanTableM
static final int[][]
ConstanthuffmanTableN
static final int[][]
ConstanthuffmanTableO
static final int
Constantjbig2HuffmanEOT=0xffffffff
static final int
Constantjbig2HuffmanLOW=0xfffffffd
static final int
Constantjbig2HuffmanOOB=0xfffffffe
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int[][]
buildTable
(int[][] table, int length) buildTable.decodeInt
(int[][] table) decodeInt.
-
Field Details
-
jbig2HuffmanLOW
public static final int jbig2HuffmanLOWConstantjbig2HuffmanLOW=0xfffffffd
- See Also:
-
jbig2HuffmanOOB
public static final int jbig2HuffmanOOBConstantjbig2HuffmanOOB=0xfffffffe
- See Also:
-
jbig2HuffmanEOT
public static final int jbig2HuffmanEOTConstantjbig2HuffmanEOT=0xffffffff
- See Also:
-
huffmanTableA
public static final int[][] huffmanTableAConstanthuffmanTableA
-
huffmanTableB
public static final int[][] huffmanTableBConstanthuffmanTableB
-
huffmanTableC
public static final int[][] huffmanTableCConstanthuffmanTableC
-
huffmanTableD
public static final int[][] huffmanTableDConstanthuffmanTableD
-
huffmanTableE
public static final int[][] huffmanTableEConstanthuffmanTableE
-
huffmanTableF
public static final int[][] huffmanTableFConstanthuffmanTableF
-
huffmanTableG
public static final int[][] huffmanTableGConstanthuffmanTableG
-
huffmanTableH
public static final int[][] huffmanTableHConstanthuffmanTableH
-
huffmanTableI
public static final int[][] huffmanTableIConstanthuffmanTableI
-
huffmanTableJ
public static final int[][] huffmanTableJConstanthuffmanTableJ
-
huffmanTableK
public static final int[][] huffmanTableKConstanthuffmanTableK
-
huffmanTableL
public static final int[][] huffmanTableLConstanthuffmanTableL
-
huffmanTableM
public static final int[][] huffmanTableMConstanthuffmanTableM
-
huffmanTableN
public static final int[][] huffmanTableNConstanthuffmanTableN
-
huffmanTableO
public static final int[][] huffmanTableOConstanthuffmanTableO
-
-
Constructor Details
-
HuffmanDecoder
Constructor for HuffmanDecoder.
- Parameters:
reader
- aStreamReader
object.
-
-
Method Details
-
buildTable
public static int[][] buildTable(int[][] table, int length) buildTable.
- Parameters:
table
- an array ofinvalid reference
int
length
- aInteger
object.- Returns:
- an array of
invalid reference
int
-
decodeInt
decodeInt.
- Parameters:
table
- an array ofinvalid reference
int
- Returns:
- a
DecodeIntResult
object. - Throws:
IOException
- if any.
-