Class Sanitizer


  • @Deprecated(since="2021-07-29")
    public class Sanitizer
    extends java.lang.Object
    Deprecated.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SANITIZE_PATTERN
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      Sanitizer()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String sanitize​(java.lang.String slug)
      Deprecated.
       
      static java.lang.String sanitize​(java.lang.String slug, java.lang.String filler)
      Deprecated.
       
      static java.lang.String sanitize​(java.lang.String slug, java.lang.String filler, boolean lower)
      Deprecated.
       
      static java.lang.String sanitize​(java.lang.String slug, java.lang.String filler, boolean lower, java.lang.String pattern)
      Deprecated.
       
      static java.lang.String sanitize​(java.lang.String slug, java.lang.String filler, boolean lower, Normalizer.Form form)
      Deprecated.
       
      static java.lang.String sanitize​(java.lang.String slug, java.lang.String filler, boolean lower, Normalizer.Form form, java.lang.String pattern)
      Deprecated.
      Used to sanitize a string.
      static java.lang.String sanitize​(java.lang.String slug, java.lang.String filler, java.lang.String pattern)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SANITIZE_PATTERN

        public static final java.lang.String SANITIZE_PATTERN
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Sanitizer

        public Sanitizer()
        Deprecated.
    • Method Detail

      • sanitize

        public static java.lang.String sanitize​(java.lang.String slug)
        Deprecated.
      • sanitize

        public static java.lang.String sanitize​(java.lang.String slug,
                                                java.lang.String filler)
        Deprecated.
      • sanitize

        public static java.lang.String sanitize​(java.lang.String slug,
                                                java.lang.String filler,
                                                boolean lower)
        Deprecated.
      • sanitize

        public static java.lang.String sanitize​(java.lang.String slug,
                                                java.lang.String filler,
                                                java.lang.String pattern)
        Deprecated.
      • sanitize

        public static java.lang.String sanitize​(java.lang.String slug,
                                                java.lang.String filler,
                                                boolean lower,
                                                java.lang.String pattern)
        Deprecated.
      • sanitize

        public static java.lang.String sanitize​(java.lang.String slug,
                                                java.lang.String filler,
                                                boolean lower,
                                                Normalizer.Form form)
        Deprecated.
      • sanitize

        public static java.lang.String sanitize​(java.lang.String slug,
                                                java.lang.String filler,
                                                boolean lower,
                                                Normalizer.Form form,
                                                java.lang.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 string
        filler - The replacement string
        lower - True if the result should be lowercase
        form - Unicode Normalization form to use (or null)