de.innovationgate.utils
public class DefaultReplaceProcessor extends java.lang.Object implements ReplaceProcessor
ReplaceProcessor
that just replaces the selected part
by another string and continues parsing after it.Constructor and Description |
---|
DefaultReplaceProcessor(java.lang.String to) |
Modifier and Type | Method and Description |
---|---|
int |
replace(java.lang.String text,
int from,
int to,
java.io.Writer out)
Processes an replacement after a source string part was found that should be replaced
|
public int replace(java.lang.String text, int from, int to, java.io.Writer out)
ReplaceProcessor
replace
in interface ReplaceProcessor
text
- The complete source textfrom
- Start position for replacementto
- End position for replacementout
- Writer where the replacement should be written to