Class DeflaterHuffman

java.lang.Object
net.sf.jazzlib.DeflaterHuffman

class DeflaterHuffman extends Object
This is the DeflaterHuffman class. This class is not thread safe. This is inherent in the API, due to the split of deflate and setInput.
  • Field Details

  • Constructor Details

  • Method Details

    • bitReverse

      static short bitReverse(int value)
      Reverse the bits of a 16 bit value.
    • reset

      public final void reset()
    • l_code

      private final int l_code(int len)
    • d_code

      private final int d_code(int distance)
    • sendAllTrees

      public void sendAllTrees(int blTreeCodes)
    • compressBlock

      public void compressBlock()
    • flushStoredBlock

      public void flushStoredBlock(byte[] stored, int stored_offset, int stored_len, boolean lastBlock)
    • flushBlock

      public void flushBlock(byte[] stored, int stored_offset, int stored_len, boolean lastBlock)
    • isFull

      public final boolean isFull()
    • tallyLit

      public final boolean tallyLit(int lit)
    • tallyDist

      public final boolean tallyDist(int dist, int len)