int encodedLength(String data) {
        long len = 0;
        for (byte bb : data.getBytes()) {
            int b = bb & 0xFF;
            len += CODE_LENGTHS[b];
        }
        return (int) ((len + 7) >> 3);
    }
This class was originally composed from the following classes in <a
href="https://github.com/twitter/hpack">Twitter Hpack</a>.
<p>
<ul>
<li>{@code com.twitter.hpack.HuffmanEncoder}</li>
<li>{@code com.twitter.hpack.HuffmanDecoder}</li>
<li>{@code com.twitter.hpack.HpackUtil}</li>
</ul>
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Huffman.java