Class Bytes

java.lang.Object
dev.resteasy.client.util.common.Bytes

public class Bytes extends Object
Simple byte utilities.
Author:
James R. Perkins
  • Constructor Details

    • Bytes

      public Bytes()
  • Method Details

    • bytesToHexString

      public static String bytesToHexString(byte[] bytes)
      Converts to the byte array into a hexadecimal string.
      Parameters:
      bytes - the bytes to convert
      Returns:
      the bytes in a hexadecimal string
    • charToBytes

      public static byte[] charToBytes(char[] chars)
      Converts the character array into a byte array.
      Parameters:
      chars - the characters to convert
      Returns:
      the characters as a byte array.