code: public void write(String text, int offset, int length) {
          buffer.append(text, offset, offset + length);
      }
docs: Write a portion of a string.
  
  @param text the text to be written
  @param offset offset from which to start writing characters
  @param length Number of characters to write