public class StringBuilderWordFinder extends CharSequenceWordFinder
| Constructor and Description |
|---|
StringBuilderWordFinder(StringBuilder text) |
StringBuilderWordFinder(StringBuilder text,
WordTokenizer tokenizer) |
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
getStringBuilder() |
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 StringBuilderWordFinder(StringBuilder text, WordTokenizer tokenizer)
public StringBuilderWordFinder(StringBuilder 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 StringBuilder getStringBuilder()
Copyright © 2020. All rights reserved.