Class StringUtil


  • public class StringUtil
    extends java.lang.Object
    A string utility class with various string manipulation functions
    • Constructor Summary

      Constructors 
      Constructor Description
      StringUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean contains​(java.lang.String target, java.lang.String content)  
      static java.lang.String getHexString​(byte[] raw)
      Convert a byte array into a hex string representation
      static java.lang.String toStringArrayToString​(java.lang.String[] array)  
      • Methods inherited from class java.lang.Object

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

      • StringUtil

        public StringUtil()
    • Method Detail

      • getHexString

        public static java.lang.String getHexString​(byte[] raw)
                                             throws java.io.UnsupportedEncodingException
        Convert a byte array into a hex string representation
        Parameters:
        raw - the byte [] to convert to a hex string representation
        Returns:
        the hex representation
        Throws:
        java.io.UnsupportedEncodingException
      • contains

        public static boolean contains​(java.lang.String target,
                                       java.lang.String content)
      • toStringArrayToString

        public static java.lang.String toStringArrayToString​(java.lang.String[] array)