Class StringUtils

java.lang.Object
org.apache.thrift.utils.StringUtils

public final class StringUtils extends Object
  • Method Details

    • bytesToHexString

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

      public static 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.