[COMPRESS-697] Move BitStream.nextBit() method to BitInputStream by fkjellberg · Pull Request #663 · apache/commons-compress (original) (raw)

I'm using BitInputStream for Huffman decoding and having a method for reading a single bit would simplify the code somewhat. There is a method nextBit used for Huffman decoding already in the subclass BitStream used by the Zip implementation. This class is not available in the public API of commons-compress so I cannot use it. I think it makes sense to move the nextBit method to BitInputStream and make it available in the public API.

https://issues.apache.org/jira/browse/COMPRESS-697