public class JavaWordFinder extends AbstractWordFinder
currentWord, nextWord, sentenceIterator, startsSentence, text| Constructor and Description |
|---|
JavaWordFinder()
Creates a new JavaWordFinder object.
|
JavaWordFinder(java.lang.String inText)
Creates a new JavaWordFinder object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
init()
Initializes this word finder
|
Word |
next()
This method scans the text from the end of the last word, and returns a
new Word object corresponding to the next word.
|
current, getText, hasNext, ignore, ignore, ignore, ignore, isWordChar, isWordChar, replace, setSentenceIterator, setText, startsSentence, toStringpublic JavaWordFinder(java.lang.String inText)
inText - the String to searchpublic JavaWordFinder()
public Word next()
next in interface WordFindernext in class AbstractWordFinderWordNotFoundException - search string contains no more words.protected void init()
init in class AbstractWordFinder