code: @Override
      public void write(String str, int off, int len) {
          buf.append(str, off, off + len);
      }
docs: Write a portion of a string.
  
  @param str String to be written
  @param off Offset from which to start writing characters
  @param len Number of characters to write