public class Sanitizer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SANITIZE_PATTERN |
Constructor and Description |
---|
Sanitizer() |
Modifier and Type | Method and Description |
---|---|
static String |
sanitize(String slug) |
static String |
sanitize(String slug,
String filler) |
static String |
sanitize(String slug,
String filler,
boolean lower) |
static String |
sanitize(String slug,
String filler,
boolean lower,
Normalizer.Form form) |
static String |
sanitize(String slug,
String filler,
boolean lower,
Normalizer.Form form,
String pattern)
Used to sanitize a string.
|
static String |
sanitize(String slug,
String filler,
boolean lower,
String pattern) |
static String |
sanitize(String slug,
String filler,
String pattern) |
public static final String SANITIZE_PATTERN
public static String sanitize(String slug, String filler, boolean lower, Normalizer.Form form)
public static String sanitize(String slug, String filler, boolean lower, Normalizer.Form form, String pattern)
slug
- The source stringfiller
- The replacement stringlower
- True if the result should be lowercaseform
- Unicode Normalization form to use (or null)Copyright © 2010 - 2020 Adobe. All Rights Reserved