Class SplittingBreakIterator

  • All Implemented Interfaces:
    Cloneable

    public class SplittingBreakIterator
    extends BreakIterator
    Virtually slices the text on both sides of every occurrence of the specified character. If the slice is 0-length which happens for adjacent slice characters or when they are at the beginning or end, that character is reported as a boundary. For every slice between the specified characters, it is further processed with a specified BreakIterator. A consequence is that the enclosed BreakIterator will never "see" the splitting character.
    Note: setText(CharacterIterator) is unsupported. Use the string version.
    WARNING: This API is experimental and might change in incompatible ways in the next release.