test_class.file: bundles/org.openhab.core/src/test/java/org/openhab/core/util/HexUtilsTest.java
test_class.identifier: HexUtilsTest
test_case.body: @Test
      public void testHexToBytesWithMultiCharDelimiter() {
          byte[] result = HexUtils.hexToBytes("41-:-42-:-43-:-44", "-:-");
          assertEquals("ABCD", new String(result));
      }
test_case.class_method_signature: HexUtilsTest.testHexToBytesWithMultiCharDelimiter()
test_case.full_signature: @Test public void testHexToBytesWithMultiCharDelimiter()
test_case.identifier: testHexToBytesWithMultiCharDelimiter
test_case.invocations: hexToBytes assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testHexToBytesWithMultiCharDelimiter()
focal_class.declarator: HEX = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E',
              'F' }
focal_class.modifier: private static final
focal_class.original_string: private static final byte[] HEX = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E',
              'F' };
focal_class.type: byte[]
focal_class.var_name: HEX
focal_class.declarator: ASCII_DIGITS_START_POSITION = 48
focal_class.modifier: private static final
focal_class.original_string: private static final int ASCII_DIGITS_START_POSITION = 48;
focal_class.type: int
focal_class.var_name: ASCII_DIGITS_START_POSITION
focal_class.declarator: ASCII_UPPERCASE_LETTERS_START_POSITION = 65
focal_class.modifier: private static final
focal_class.original_string: private static final int ASCII_UPPERCASE_LETTERS_START_POSITION = 65;
focal_class.type: int
focal_class.var_name: ASCII_UPPERCASE_LETTERS_START_POSITION
focal_class.file: bundles/org.openhab.core/src/main/java/org/openhab/core/util/HexUtils.java
focal_class.identifier: HexUtils
focal_class.class_method_signature: HexUtils.HexUtils()
focal_class.full_signature: private  HexUtils()
focal_class.identifier: HexUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  HexUtils()
focal_class.class_method_signature: HexUtils.bytesToHex(byte[] bytes, @Nullable CharSequence delimiter)
focal_class.full_signature: public static String bytesToHex(byte[] bytes, @Nullable CharSequence delimiter)
focal_class.identifier: bytesToHex
focal_class.modifiers: public static
focal_class.parameters: (byte[] bytes, @Nullable CharSequence delimiter)
focal_class.return: String
focal_class.signature: String bytesToHex(byte[] bytes, @Nullable CharSequence delimiter)
focal_class.class_method_signature: HexUtils.bytesToHexInt(byte[] bytes, CharSequence delimiter)
focal_class.full_signature: private static String bytesToHexInt(byte[] bytes, CharSequence delimiter)
focal_class.identifier: bytesToHexInt
focal_class.modifiers: private static
focal_class.parameters: (byte[] bytes, CharSequence delimiter)
focal_class.return: String
focal_class.signature: String bytesToHexInt(byte[] bytes, CharSequence delimiter)
focal_class.class_method_signature: HexUtils.bytesToHex(byte[] bytes)
focal_class.full_signature: public static String bytesToHex(byte[] bytes)
focal_class.identifier: bytesToHex
focal_class.modifiers: public static
focal_class.parameters: (byte[] bytes)
focal_class.return: String
focal_class.signature: String bytesToHex(byte[] bytes)
focal_class.class_method_signature: HexUtils.byteToHex(final byte value)
focal_class.full_signature: public static byte[] byteToHex(final byte value)
focal_class.identifier: byteToHex
focal_class.modifiers: public static
focal_class.parameters: (final byte value)
focal_class.return: byte[]
focal_class.signature: byte[] byteToHex(final byte value)
focal_class.class_method_signature: HexUtils.hexToBytes(String hexString, String delimiter)
focal_class.full_signature: public static byte[] hexToBytes(String hexString, String delimiter)
focal_class.identifier: hexToBytes
focal_class.modifiers: public static
focal_class.parameters: (String hexString, String delimiter)
focal_class.return: byte[]
focal_class.signature: byte[] hexToBytes(String hexString, String delimiter)
focal_class.class_method_signature: HexUtils.hexToBytes(String hexString)
focal_class.full_signature: public static byte[] hexToBytes(String hexString)
focal_class.identifier: hexToBytes
focal_class.modifiers: public static
focal_class.parameters: (String hexString)
focal_class.return: byte[]
focal_class.signature: byte[] hexToBytes(String hexString)
focal_class.class_method_signature: HexUtils.hexToByte(byte high, byte low)
focal_class.full_signature: public static byte hexToByte(byte high, byte low)
focal_class.identifier: hexToByte
focal_class.modifiers: public static
focal_class.parameters: (byte high, byte low)
focal_class.return: byte
focal_class.signature: byte hexToByte(byte high, byte low)
focal_class.class_method_signature: HexUtils.unhex(byte value)
focal_class.full_signature: private static byte unhex(byte value)
focal_class.identifier: unhex
focal_class.modifiers: private static
focal_class.parameters: (byte value)
focal_class.return: byte
focal_class.signature: byte unhex(byte value)
focal_method.body: public static byte[] hexToBytes(String hexString, String delimiter) {
          // first convert to upper case to ease the rest
          String ucHexString = hexString.toUpperCase();
  
          final String[] splitted = ucHexString.split(delimiter);
  
          final byte[] bytes = new byte[splitted.length];
          int pos = 0;
          for (final String part : splitted) {
              final byte[] in = part.getBytes(StandardCharsets.UTF_8);
              if (in.length != 2) {
                  throw new IllegalArgumentException("hexString needs to have an even length: " + hexString);
              }
              bytes[pos++] = (byte) (unhex(in[0]) << 4 | unhex(in[1]));
          }
          return bytes;
      }
focal_method.class_method_signature: HexUtils.hexToBytes(String hexString, String delimiter)
focal_method.full_signature: public static byte[] hexToBytes(String hexString, String delimiter)
focal_method.identifier: hexToBytes
focal_method.invocations: toUpperCase split getBytes unhex unhex
focal_method.modifiers: public static
focal_method.parameters: (String hexString, String delimiter)
focal_method.return: byte[]
focal_method.signature: byte[] hexToBytes(String hexString, String delimiter)