Class DeflaterHuffman.Tree

  • Enclosing class:
    DeflaterHuffman

    class DeflaterHuffman.Tree
    extends java.lang.Object
    • Field Detail

      • freqs

        short[] freqs
      • codes

        short[] codes
      • length

        byte[] length
      • bl_counts

        int[] bl_counts
      • minNumCodes

        int minNumCodes
      • numCodes

        int numCodes
      • maxLength

        int maxLength
    • Constructor Detail

      • Tree

        Tree​(int elems,
             int minCodes,
             int maxLength)
    • Method Detail

      • reset

        void reset()
      • writeSymbol

        final void writeSymbol​(int code)
      • checkEmpty

        final void checkEmpty()
      • setStaticCodes

        void setStaticCodes​(short[] stCodes,
                            byte[] stLength)
      • buildCodes

        public void buildCodes()
      • buildLength

        private void buildLength​(int[] childs)
      • buildTree

        void buildTree()
      • getEncodedLength

        int getEncodedLength()