Class TextUtils


  • public final class TextUtils
    extends java.lang.Object
    Text/String utils.
    Since:
    13978
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TextUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String stripUrl​(java.lang.String url)
      Remove privacy related parts from output URL
      static java.lang.String wrapLongUrl​(java.lang.String url)
      Inserts zero width space character (U+8203) after each slash/ampersand to wrap long URLs.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • wrapLongUrl

        public static java.lang.String wrapLongUrl​(java.lang.String url)
        Inserts zero width space character (U+8203) after each slash/ampersand to wrap long URLs.
        Parameters:
        url - URL
        Returns:
        wrapped URL
        Since:
        13978
      • stripUrl

        public static java.lang.String stripUrl​(java.lang.String url)
        Remove privacy related parts from output URL
        Parameters:
        url - Unmodified URL
        Returns:
        Stripped URL (privacy related issues removed)
        Since:
        18652