Package org.apache.abdera.i18n.text
Class Sanitizer
- java.lang.Object
-
- org.apache.abdera.i18n.text.Sanitizer
-
@Deprecated(since="2021-07-29") public class Sanitizer extends Object
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSANITIZE_PATTERNDeprecated.
-
Constructor Summary
Constructors Constructor Description Sanitizer()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Stringsanitize(String slug)Deprecated.static Stringsanitize(String slug, String filler)Deprecated.static Stringsanitize(String slug, String filler, boolean lower)Deprecated.static Stringsanitize(String slug, String filler, boolean lower, String pattern)Deprecated.static Stringsanitize(String slug, String filler, boolean lower, Normalizer.Form form)Deprecated.static Stringsanitize(String slug, String filler, boolean lower, Normalizer.Form form, String pattern)Deprecated.Used to sanitize a string.static Stringsanitize(String slug, String filler, String pattern)Deprecated.
-
-
-
Field Detail
-
SANITIZE_PATTERN
public static final String SANITIZE_PATTERN
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
sanitize
public static String sanitize(String slug, String filler, boolean lower, String pattern)
Deprecated.
-
sanitize
public static String sanitize(String slug, String filler, boolean lower, Normalizer.Form form)
Deprecated.
-
sanitize
public static String sanitize(String slug, String filler, boolean lower, Normalizer.Form form, String pattern)
Deprecated.Used to sanitize a string. Optionally performs Unicode Form KD normalization on a string to break extended characters down, then replaces non alphanumeric characters with a specified filler replacement.- Parameters:
slug- The source stringfiller- The replacement stringlower- True if the result should be lowercaseform- Unicode Normalization form to use (or null)
-
-