Package org.jboss.as.jdr.util
Class Sanitizers
- java.lang.Object
-
- org.jboss.as.jdr.util.Sanitizers
-
public class Sanitizers extends Object
Provides the most commonly used sanitizers with their most common configurations.
-
-
Constructor Summary
Constructors Constructor Description Sanitizers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Sanitizerpattern(String pattern, String replacement)creates and returns aSanitizerinstance that only operates on files that end with a.propertiessuffix.static Sanitizerxml(String xpath)creates and returns aSanitizerinstance that only operates on files that end with a.xmlsuffix.
-
-
-
Method Detail
-
pattern
public static Sanitizer pattern(String pattern, String replacement) throws Exception
creates and returns aSanitizerinstance that only operates on files that end with a.propertiessuffix.- Parameters:
pattern-WildcardPatterncompatible pattern to search forreplacement- text content to replace matches with- Returns:
Sanitizerthat only operates on files with names ending with.properties.- Throws:
Exception
-
-