buf.insert(where, str);
int length = length(); int strLen = str.length();  if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where);   if ((gapEnd - gapStart) < strLen)  shiftEnd(strLen + DEFAULT_BUFSIZE);   if (where != gapStart) shiftGap(where);    System.arraycopy(str.toCharArray(), 0, buffer, gapStart, strLen); gapStart += strLen;
  public UndoableEdit insertString(int where, String str)    throws BadLocationException    {	buf.insert(where, str);	return null;    }