Package com.eka.middleware.pub.util.rest
Class BinaryUtils
java.lang.Object
com.eka.middleware.pub.util.rest.BinaryUtils
Utilities for encoding and decoding binary data to and from different forms.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
BinaryUtils
public BinaryUtils()
-
-
Method Details
-
toHex
Converts byte data to a Hex-encoded string.- Parameters:
data
- data to hex encode.- Returns:
- hex-encoded string.
-
fromHex
Converts a Hex-encoded data string to the original byte data.- Parameters:
hexData
- hex-encoded data to decode.- Returns:
- decoded data from the hex string.
-