Class SplittingBreakIterator
java.lang.Object
java.text.BreakIterator
org.apache.lucene.search.uhighlight.SplittingBreakIterator
- All Implemented Interfaces:
Cloneable
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:
Note:
setText(CharacterIterator)
is unsupported. Use the string version.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from class java.text.BreakIterator
DONE
-
Constructor Summary
-
Method Summary
Methods inherited from class java.text.BreakIterator
clone, getAvailableLocales, getCharacterInstance, getCharacterInstance, getLineInstance, getLineInstance, getSentenceInstance, getSentenceInstance, getWordInstance, getWordInstance, isBoundary
-
Constructor Details
-
SplittingBreakIterator
-
-
Method Details
-
setText
- Specified by:
setText
in classBreakIterator
-
setText
- Overrides:
setText
in classBreakIterator
-
getText
- Specified by:
getText
in classBreakIterator
-
current
public int current()- Specified by:
current
in classBreakIterator
-
first
public int first()- Specified by:
first
in classBreakIterator
-
last
public int last()- Specified by:
last
in classBreakIterator
-
next
public int next()- Specified by:
next
in classBreakIterator
-
previous
public int previous()- Specified by:
previous
in classBreakIterator
-
following
public int following(int offset) - Specified by:
following
in classBreakIterator
-
preceding
public int preceding(int offset) - Overrides:
preceding
in classBreakIterator
-
next
public int next(int n) - Specified by:
next
in classBreakIterator
-