code: private void write(int integer, Keep keep) throws JSONException {
          int width = keep.bitsize();
          keep.tick(integer);
          if (probe) {
              log("\"" + keep.value(integer) + "\"");
          }
          write(integer, width);
      }
docs: Write an integer, using the number of bits necessary to hold the number
  as determined by its keep, and increment its usage count in the keep.
  
  @param integer
  The value to be encoded.
  @param keep
  The Keep that the integer is one of.
  @throws JSONException