public class DefaultWordFinder extends AbstractWordFinder
currentWord, nextWord, sentenceIterator, startsSentence, text
Constructor and Description |
---|
DefaultWordFinder()
Creates a new DefaultWordFinder object.
|
DefaultWordFinder(java.lang.String inText)
Creates a new DefaultWordFinder object.
|
Modifier and Type | Method and Description |
---|---|
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, init, isWordChar, isWordChar, replace, setSentenceIterator, setText, startsSentence, toString
public DefaultWordFinder(java.lang.String inText)
inText
- the String to searchpublic DefaultWordFinder()
public Word next()
next
in interface WordFinder
next
in class AbstractWordFinder
WordNotFoundException
- search string contains no more words.