Package es.bsc.dataclay.dbhandler
Class Utils
- java.lang.Object
-
- es.bsc.dataclay.dbhandler.Utils
-
public class Utils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static char[]
hexArray
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
bytesToHex(byte[] bytes)
static byte[]
hexStringToByteArray(String hex)
Convert Hexadecimal string to byte arraystatic String
unhex(String hex)
-
-
-
Method Detail
-
bytesToHex
public static String bytesToHex(byte[] bytes)
-
unhex
public static String unhex(String hex) throws org.apache.commons.codec.DecoderException
- Throws:
org.apache.commons.codec.DecoderException
-
hexStringToByteArray
public static byte[] hexStringToByteArray(String hex) throws org.apache.commons.codec.DecoderException
Convert Hexadecimal string to byte array- Parameters:
hex
- String- Returns:
- Bytes
- Throws:
org.apache.commons.codec.DecoderException
-
-