@Deprecated
    public char setIndex(int p)
    {
    if (p < begin || p > end) {
            throw new IllegalArgumentException("Invalid index");
    }
        pos = p;
        return current();
    }
@ Deprecated public char setIndex ( int p ) { if ( p < begin || p > end ) { throw new IllegalArgumentException ( "Invalid index" ) ; } pos = p ; return current ( ) ; }
Implements CharacterIterator.setIndex() for String.
@see CharacterIterator#setIndex
@deprecated ICU 2.4. Use java.text.StringCharacterIterator instead.