com.swabunga.spell.event
public class StringWordTokenizer extends AbstractWordTokenizer
It also allows for the string to be altered by calls to replaceWord(). The result after the spell checking is completed is available to the call to getContext.
Constructor Summary | |
---|---|
StringWordTokenizer(String s)
Creates a new StringWordTokenizer object.
| |
StringWordTokenizer(WordFinder wf)
Creates a new StringWordTokenizer object.
| |
StringWordTokenizer(String s, WordFinder finder)
Creates a new StringWordTokenizer object. |
Method Summary | |
---|---|
String | getFinalText() |
void | replaceWord(String s)
Replace the current word in the iteration with the String s.
|
Parameters: s the string to tokenize.
Parameters: wf the custom WordFinder to use in tokenizing. Note that the string to tokenize will be encapsulated within the WordFinder.
Parameters: s the string to work on finder the custom WordFinder to use in tokenizing. Note that the string to tokenize will be encapsulated within the WordFinder.
Deprecated: use getContext() instead as per the WordTokenizer interface specification.
Returns: the final text.
Parameters: s the String to replace the current word.
Throws: WordNotFoundException current word not yet set.