public class Sanitizers extends Object
| Constructor and Description |
|---|
Sanitizers() |
| Modifier and Type | Method and Description |
|---|---|
static Sanitizer |
pattern(String pattern,
String replacement)
creates and returns a
Sanitizer instance that only operates on
files that end with a .properties suffix. |
static Sanitizer |
xml(String xpath)
creates and returns a
Sanitizer instance that only operates on
files that end with a .xml suffix. |
public static Sanitizer pattern(String pattern, String replacement) throws Exception
Sanitizer instance that only operates on
files that end with a .properties suffix.pattern - WildcardPattern compatible pattern to search forreplacement - text content to replace matches withSanitizer that only operates on files with names ending with .properties.ExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.