setIndex
Sets the position to the specified position in the text and returns that character.
Return
the character at the specified position or DONE if the specified position is equal to getEndIndex()
Parameters
position
the position within the text. Valid values range from getBeginIndex() to getEndIndex(). An IllegalArgumentException is thrown if an invalid value is supplied.