Package org.yamcs.xtce.util
Class HexUtils
- java.lang.Object
-
- org.yamcs.xtce.util.HexUtils
-
public class HexUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description HexUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
hex(byte[] b)
static byte[]
unhex(String s)
Convert a hex string into a byte array.
-
-
-
Method Detail
-
hex
public static String hex(byte[] b)
-
unhex
public static byte[] unhex(String s)
Convert a hex string into a byte array. If the string has an odd number of hex digits, it is padded with 0 at the beginning.- Parameters:
s
- - string to be converted- Returns:
- binary array representation of the hex string
-
-