Class HexUtils

java.lang.Object
org.yamcs.xtce.util.HexUtils

public class HexUtils extends Object
  • Constructor Details

    • HexUtils

      public HexUtils()
  • Method Details

    • 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