|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides a callback for clients who need a word-break capability.
To use this class, register the object implementing its newWord()
callback with
a WordBreaker
or an object derived from it. When WordBreaker.characters()
is invoked, newWord()
is called every time a new word is parsed.
You can initialize and pass in an IntList
to be populated
by newWord()
with whatever information is useful to you.
WordBreaker
Method Summary | |
void |
newWord(char[] word,
int wordStart,
int wordEnd,
int parent,
IntList ints)
This method will be called whenever WordBreaker.characters(char[], int, int, int, IntList) encounters
a new word. |
Method Detail |
public void newWord(char[] word, int wordStart, int wordEnd, int parent, IntList ints)
WordBreaker.characters(char[], int, int, int, IntList)
encounters
a new word.
word
- A char[] array holding the word, possibly larger than the word itselfwordStart
- Starting offset of the word in the arraywordEnd
- Offset of the first character past the end of the wordparent
- Document id index of the node in which the word is foundints
- An optional IntList
you can pass indirectly to the routine
via WordBreaker.characters()
FandO.contains_word(SimpleNode,SimpleNode)
,
IndexManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |