public class ContextBreakIterator extends BreakIterator
BreakIterators and aggregates their breaks to form larger contexts.
NOTE: This class is **only** intended to be used with Solr/Lucene highlighters.
It only implements `getText`, `first`, `last`, `preceding` and `following`.DONE| Constructor and Description |
|---|
ContextBreakIterator(BreakIterator baseIter,
BreakIterator limitIter,
int contextSize)
Wrap another BreakIterator and configure the output context size
|
| Modifier and Type | Method and Description |
|---|---|
int |
current() |
int |
first() |
int |
following(int offset) |
CharacterIterator |
getText() |
int |
last() |
int |
next() |
int |
next(int n) |
int |
preceding(int offset) |
int |
previous() |
void |
setText(CharacterIterator newText) |
clone, getAvailableLocales, getCharacterInstance, getCharacterInstance, getLineInstance, getLineInstance, getSentenceInstance, getSentenceInstance, getWordInstance, getWordInstance, isBoundary, setTextpublic ContextBreakIterator(BreakIterator baseIter, BreakIterator limitIter, int contextSize)
public int first()
first in class BreakIteratorpublic int last()
last in class BreakIteratorpublic int next(int n)
next in class BreakIteratorpublic int next()
next in class BreakIteratorpublic int previous()
previous in class BreakIteratorpublic int following(int offset)
following in class BreakIteratorpublic int preceding(int offset)
preceding in class BreakIteratorpublic int current()
current in class BreakIteratorpublic CharacterIterator getText()
getText in class BreakIteratorpublic void setText(CharacterIterator newText)
setText in class BreakIteratorCopyright © 2019. All rights reserved.