@Override public boolean isBoundary(int offset){
  CharacterIterator text=getText();
  checkOffset(offset,text);
  if (offset == text.getBeginIndex()) {
    return true;
  }
 else {
    return following(offset - 1) == offset;
  }
}

@ Override public boolean isBoundary ( int offset ) { CharacterIterator text = getText ( ) ; checkOffset ( offset , text ) ; if ( offset == text . getBeginIndex ( ) ) { return true ; } else { return following ( offset - 1 ) == offset ; } }
returns true if the specified position is a boundary position . as a side effect , leaves the iterator pointing to the first boundary position at or after " offset " .
