Class StringUtils


  • public final class StringUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String bytesToHexString​(byte[] bytes)
      Stringify a byte array to the hex representation for each byte.
      static java.lang.String bytesToHexString​(byte[] bytes, int offset, int length)
      Stringify a portion of the byte array.
      • Methods inherited from class java.lang.Object

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

      • bytesToHexString

        public static java.lang.String bytesToHexString​(byte[] bytes)
        Stringify a byte array to the hex representation for each byte.
        Parameters:
        bytes -
        Returns:
        hex string.
      • bytesToHexString

        public static java.lang.String bytesToHexString​(byte[] bytes,
                                                        int offset,
                                                        int length)
        Stringify a portion of the byte array.
        Parameters:
        bytes - byte array.
        offset - portion start.
        length - portion length.
        Returns:
        hex string.