Class LengthGoalBreakIterator

  • All Implemented Interfaces:
    Cloneable

    public class LengthGoalBreakIterator
    extends BreakIterator
    Wraps another BreakIterator to skip past breaks that would result in passages that are too short. It's still possible to get a short passage but only at the very end of the input text.

    Important: This is not a general purpose BreakIterator; it's only designed to work in a way compatible with the UnifiedHighlighter. Some assumptions are checked with Java assertions.

    WARNING: This API is experimental and might change in incompatible ways in the next release.