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 other 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?
Share
Look here for a bitbuffer example
http://www.javadocexamples.com/java_source/com/sun/java/help/search/BitBuffer.java.html