public class StringReplacementTool extends Task<Object,List<File>>
in(File...) or in(String). All the files you select for processing has to
be using the same charset. If you wish to replace files with different charsets,
you need to use this task multiple times and use charset(Charset) to set the charset of processed files.| Constructor and Description |
|---|
StringReplacementTool() |
| Modifier and Type | Method and Description |
|---|---|
StringReplacementTool |
charset(Charset charset)
Selects the charset which will be used for reading and writing the files.
|
StringReplacementTool |
in(File... file)
Adds files to the list to be processed by the tool.
|
StringReplacementTool |
in(String file)
Adds path as a file to be processed by the tool.
|
protected List<File> |
process(Object input) |
ReplacementTuple<StringReplacementTool> |
replace(String regex)
Set a regular expression to be used for the replacement.
|
execute, getExecutionService, run, setExecutionService, setPreviousTask, then, thenpublic StringReplacementTool in(File... file)
file - public StringReplacementTool in(String file)
file - public ReplacementTuple<StringReplacementTool> replace(String regex)
public StringReplacementTool charset(Charset charset)
Copyright © 2015 JBoss by Red Hat. All rights reserved.