docs: public void write(char text[], int offset, int length) {
          if ((offset < 0) || (offset > text.length) || (length < 0) || ((offset + length) > text.length) || ((offset + length) < 0)) {
              throw new IndexOutOfBoundsException();
          }
          else if (length == 0) {
              return;
          }
          buffer.append(text, offset, length);
      }