Class StringUtils


  • final class StringUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private StringUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String htmlEntites​(java.lang.String str)
      Replaces all opening an closing tags with < or >.
      static java.lang.String normalize​(java.lang.String str)  
      static java.lang.String wrapText​(java.lang.String line, int columnWidth)
      Wrap the text with the given column width
      static java.util.List<java.lang.String> wrapText​(java.util.List<java.lang.String> list, int columnWidth)  
      • Methods inherited from class java.lang.Object

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

      • StringUtils

        private StringUtils()
    • Method Detail

      • htmlEntites

        public static java.lang.String htmlEntites​(java.lang.String str)
        Replaces all opening an closing tags with < or >.
        Parameters:
        str -
        Returns:
      • normalize

        public static java.lang.String normalize​(java.lang.String str)
      • wrapText

        public static java.util.List<java.lang.String> wrapText​(java.util.List<java.lang.String> list,
                                                                int columnWidth)
      • wrapText

        public static java.lang.String wrapText​(java.lang.String line,
                                                int columnWidth)
        Wrap the text with the given column width
        Parameters:
        line - the text
        columnWidth - the given column
        Returns:
        the wrapped text