Does anyone have a good java BitBuffer?
<p>I was working on a school assignment (doing Hoffman encoding) and I need some sort of bitbuffer to use to put all the bits in.  While I did find several things doing a google, most of the stuff was garbage - didn't compile, referenced <em>other</em> libraries I didn't have, etc.  Does anyone have an actual good bitbuffer class out there?  All that I really even want to do is read and write bits one at a time.  If nobody has a good one, is there some existing data structure that would be good for holding that sort of data efficently that I could use to write one myself?</p>
