docs: public long readBits(int bit) throws IOException, JPEGMarkerException {
          if (bit < 0) {
              throw new IllegalArgumentException("bit must be greater than zero");
          }
  
          int i = 0, v = 0;
          while (i != bit) {
              i++;
              v = (v << 1) | readBit();
          }
  
          return v;
      }