Package dev.resteasy.client.util.common
Class Bytes
- java.lang.Object
-
- dev.resteasy.client.util.common.Bytes
-
public class Bytes extends Object
Simple byte utilities.- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description Bytes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
bytesToHexString(byte[] bytes)
Converts to the byte array into a hexadecimal string.static byte[]
charToBytes(char[] chars)
Converts the character array into a byte array.
-
-
-
Method Detail
-
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.
-
-