/** * Construct a Canonical Huffman Codec for Integer data * * @param coreBlockInputStream the input bitstream to read from * @param coreBlockOutputStream the output bitstream to write to * @param values the alphabet (provided as Integers) * @param bitLengths the number of bits of symbol's huffman code */ public CanonicalHuffmanIntegerCodec(final BitInputStream coreBlockInputStream, final BitOutputStream coreBlockOutputStream, final int[] values, final int[] bitLengths) { super(coreBlockInputStream, coreBlockOutputStream); helper = new HuffmanIntHelper(values, bitLengths); }
/** * Construct a Canonical Huffman Codec for Integer data * * @param coreBlockInputStream the input bitstream to read from * @param coreBlockOutputStream the output bitstream to write to * @param values the alphabet (provided as Integers) * @param bitLengths the number of bits of symbol's huffman code */ public CanonicalHuffmanIntegerCodec(final BitInputStream coreBlockInputStream, final BitOutputStream coreBlockOutputStream, final int[] values, final int[] bitLengths) { super(coreBlockInputStream, coreBlockOutputStream); helper = new HuffmanIntHelper(values, bitLengths); }
HuffmanIntHelper helper = new HuffmanIntHelper(cal.values(), cal.bitLens());