public class StringBufferWordFinder extends CharSequenceWordFinder
| Constructor and Description |
|---|
StringBufferWordFinder(StringBuffer text) |
StringBufferWordFinder(StringBuffer text,
WordTokenizer tokenizer) |
| Modifier and Type | Method and Description |
|---|---|
StringBuffer |
getStringBuffer() |
protected void |
replace(String newWord,
Word currentWord)
This method throw a UnsupportedOperationException because a String is
inmutable object.
|
findFirstWord, getCharSequence, getTokenizer, next, setTokenizer, updateCharSequencecurrent, hasCurrent, hasNext, init, init, next, replacepublic StringBufferWordFinder(StringBuffer text, WordTokenizer tokenizer)
public StringBufferWordFinder(StringBuffer text)
text - protected void replace(String newWord, Word currentWord)
CharSequenceWordFinderreplace in class CharSequenceWordFindernewWord - The new string for the current word.currentWord - The current word.public StringBuffer getStringBuffer()
Copyright © 2020. All rights reserved.