/// <summary>
 /// Sets the position to the specified position in the text and returns that
 /// character.
 /// </summary>
 ///
 /// <param name="position">the position within the text. Valid values range fromgetBeginIndex() to getEndIndex(). An IllegalArgumentExceptionis thrown if an invalid value is supplied.</param>
 /// <returns>the character at the specified position or DONE if the specified
 /// position is equal to getEndIndex()</returns>
 public virtual char SetIndex(int position)
 {
     iterator.SetIndex(position);
     return((char)iterator.Current());
 }