code: public int readRawUInt(int bits) throws IOException {
          int val = 0;
          for (int i = 0; i < bits; i++) {
              val = readBitToInt(val);
          }
          return val;
      }
docs: read bits into an unsigned integer.
  @param bits  The number of bits to read
  @return      The bits as an unsigned integer
  @throws IOException  Thrown if error reading input stream