Java 1.3 Compatible helper class to store bits in an integer