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