code: @Override
      public void write(int b) throws IOException {
          int newcount = count + 1;
          if (newcount > buf.length) {
              buf = Arrays.copyOf(buf, oversize(newcount));
          }
          buf[count] = (byte) b;
          count = newcount;
      }
docs: Write an integer.
  
  @param b int
  @throws IOException if write fails