code: @Override
      public void insert(CharSequence text) throws IOException
      {
          int ln = text.length();
          if (ln == 0)
          {
              return;
          }
          if (ln >= size - (end-cursor))
          {
              throw new IOException(text+" doesn't fit in the buffer");
          }
          if (cursor != end)
          {
              makeRoom(ln);
          }
          for (int ii=0;ii<ln;ii++)
          {
              set((cursor+ii), text.charAt(ii));
          }
          end += ln;
      }
docs: Inserts text at cursor position
  @param text
  @throws java.io.IOException