Package com.drew.lang

Class StringUtil


  • public final class StringUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StringUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int compare​(java.lang.String s1, java.lang.String s2)  
      static java.lang.String fromStream​(java.io.InputStream stream)  
      static java.lang.String join​(java.lang.Iterable<? extends java.lang.CharSequence> strings, java.lang.String delimiter)  
      static <T extends java.lang.CharSequence>
      java.lang.String
      join​(T[] strings, java.lang.String delimiter)  
      static java.lang.String urlEncode​(java.lang.String name)  
      • Methods inherited from class java.lang.Object

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

      • StringUtil

        public StringUtil()
    • Method Detail

      • join

        public static java.lang.String join​(java.lang.Iterable<? extends java.lang.CharSequence> strings,
                                            java.lang.String delimiter)
      • join

        public static <T extends java.lang.CharSequence> java.lang.String join​(T[] strings,
                                                                               java.lang.String delimiter)
      • fromStream

        public static java.lang.String fromStream​(java.io.InputStream stream)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • compare

        public static int compare​(java.lang.String s1,
                                  java.lang.String s2)
      • urlEncode

        public static java.lang.String urlEncode​(java.lang.String name)