Class HuffmanDecoder

java.lang.Object
org.jpedal.jbig2.decoders.HuffmanDecoder

public class HuffmanDecoder extends Object

HuffmanDecoder class.

  • Field Details

    • jbig2HuffmanLOW

      public static final int jbig2HuffmanLOW
      Constant jbig2HuffmanLOW=0xfffffffd
      See Also:
    • jbig2HuffmanOOB

      public static final int jbig2HuffmanOOB
      Constant jbig2HuffmanOOB=0xfffffffe
      See Also:
    • jbig2HuffmanEOT

      public static final int jbig2HuffmanEOT
      Constant jbig2HuffmanEOT=0xffffffff
      See Also:
    • huffmanTableA

      public static final int[][] huffmanTableA
      Constant huffmanTableA
    • huffmanTableB

      public static final int[][] huffmanTableB
      Constant huffmanTableB
    • huffmanTableC

      public static final int[][] huffmanTableC
      Constant huffmanTableC
    • huffmanTableD

      public static final int[][] huffmanTableD
      Constant huffmanTableD
    • huffmanTableE

      public static final int[][] huffmanTableE
      Constant huffmanTableE
    • huffmanTableF

      public static final int[][] huffmanTableF
      Constant huffmanTableF
    • huffmanTableG

      public static final int[][] huffmanTableG
      Constant huffmanTableG
    • huffmanTableH

      public static final int[][] huffmanTableH
      Constant huffmanTableH
    • huffmanTableI

      public static final int[][] huffmanTableI
      Constant huffmanTableI
    • huffmanTableJ

      public static final int[][] huffmanTableJ
      Constant huffmanTableJ
    • huffmanTableK

      public static final int[][] huffmanTableK
      Constant huffmanTableK
    • huffmanTableL

      public static final int[][] huffmanTableL
      Constant huffmanTableL
    • huffmanTableM

      public static final int[][] huffmanTableM
      Constant huffmanTableM
    • huffmanTableN

      public static final int[][] huffmanTableN
      Constant huffmanTableN
    • huffmanTableO

      public static final int[][] huffmanTableO
      Constant huffmanTableO
  • Constructor Details

    • HuffmanDecoder

      public HuffmanDecoder(StreamReader reader)

      Constructor for HuffmanDecoder.

      Parameters:
      reader - a StreamReader object.
  • Method Details

    • buildTable

      public static int[][] buildTable(int[][] table, int length)

      buildTable.

      Parameters:
      table - an array of
      invalid reference
      int
      objects.
      length - a Integer object.
      Returns:
      an array of
      invalid reference
      int
      objects.
    • decodeInt

      public DecodeIntResult decodeInt(int[][] table) throws IOException

      decodeInt.

      Parameters:
      table - an array of
      invalid reference
      int
      objects.
      Returns:
      a DecodeIntResult object.
      Throws:
      IOException - if any.