java.lang.Cloneable
, ChainableReader
, TokenFilter.Filter
public static class TokenFilter.ReplaceString extends TokenFilter.ChainableReaderFilter
description, location, project
Constructor | Description |
---|---|
ReplaceString() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
filter(java.lang.String line) |
Filter a string 'line' replacing from with to
(Copy&Paste from the Replace task)
|
void |
setFrom(java.lang.String from) |
the from attribute
|
void |
setTo(java.lang.String to) |
the to attribute
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
chain, setByLine
public void setFrom(java.lang.String from)
from
- the string to replacepublic void setTo(java.lang.String to)
to
- the string to replace 'from' withpublic java.lang.String filter(java.lang.String line)
line
- the string to be filtered