Class Bytes
java.lang.Object
dev.resteasy.client.util.common.Bytes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
Bytes
public Bytes()
-
-
Method Details
-
bytesToHexString
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.
-