Class StringUtils


  • public class StringUtils
    extends java.lang.Object
    Utility methods for Strings.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String bytesToHex​(byte[] byteArray)
      Helper method that convert byte array into string for logging
      static java.lang.String bytesToHex​(byte[] byteArray, int offset, int size)
      Helper method that convert byte array into string for logging
      • Methods inherited from class java.lang.Object

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

      • bytesToHex

        public static java.lang.String bytesToHex​(byte[] byteArray)
        Helper method that convert byte array into string for logging
        Parameters:
        byteArray - array of bytes
        Returns:
        string representation of byte array
      • bytesToHex

        public static java.lang.String bytesToHex​(byte[] byteArray,
                                                  int offset,
                                                  int size)
        Helper method that convert byte array into string for logging
        Parameters:
        byteArray - array of bytes
        offset - the offset within byteArray
        size - the size of array
        Returns:
        string representation of byte array