code: public void write(byte bbuf[], int off, int len) {
          if ((off < 0) || (off > bbuf.length) || (len < 0) ||
              ((off + len) > bbuf.length) || ((off + len) < 0)) {
              throw new IndexOutOfBoundsException();
          } else if (len == 0) {
              return;
          }
          buf.append(new String(bbuf, off, len));
      }
docs: Write a portion of an array of characters.
  
  @param  bbuf  Array of characters
  @param  off   Offset from which to start writing characters
  @param  len   Number of characters to write