Class StringUtil

java.lang.Object
eu.medsea.util.StringUtil

public class StringUtil extends Object
A string utility class with various string manipulation functions
  • Constructor Details

    • StringUtil

      public StringUtil()
  • Method Details

    • getHexString

      public static String getHexString(byte[] raw) throws 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:
      UnsupportedEncodingException
    • contains

      public static boolean contains(String target, String content)
    • toStringArrayToString

      public static String toStringArrayToString(String[] array)