public void setBreakIterator ( BreakIterator breakiter ) { search_ . setBreakIter ( breakiter ) ; if ( search_ . breakIter ( ) != null ) { // Create a clone of CharacterItearator, so it won't // affect the position currently held by search_.text() if ( search_ . text ( ) != null ) { search_ . breakIter ( ) . setText ( ( CharacterIterator ) search_ . text ( ) . clone ( ) ) ; } } }
Set the BreakIterator that will be used to restrict the points at which matches are detected .