Package dev.costas.javahelpers
Class HexUtil
java.lang.Object
dev.costas.javahelpers.HexUtil
Util for hexadecimal handling.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HexUtil
public HexUtil()
-
-
Method Details
-
encode
Encodes a string to hexadecimal.- Parameters:
text- The string to encode.- Returns:
- The encoded string.
- Throws:
IllegalArgumentException- iftextis null
-
decode
Decodes a hexadecimal string.- Parameters:
text- The string to decode.- Returns:
- The decoded string.
- Throws:
IllegalArgumentException- iftextis null
-