Searched refs:hexString (Results 1 – 3 of 3) sorted by relevance
82 public static byte[] decodeHex(String hexString) { in decodeHex() argument83 int length = hexString.length(); in decodeHex()86 throw new IllegalArgumentException("Odd number of characters: " + hexString); in decodeHex()92 int c1 = hexString.charAt(j++); in decodeHex()104 int c2 = hexString.charAt(j++); in decodeHex()120 throw new IllegalArgumentException("Invalid hexadecimal digit: " + hexString); in decodeHex()
571 public static byte[] hexStringToByteArray(@Nullable final String hexString) { in hexStringToByteArray() argument572 if (isEmpty(hexString)) { in hexStringToByteArray()575 final int N = hexString.length(); in hexStringToByteArray()582 bytes[i / 2] = (byte) ((Character.digit(hexString.charAt(i), 16) << 4) in hexStringToByteArray()583 + Character.digit(hexString.charAt(i + 1), 16)); in hexStringToByteArray()
71 StringBuilder hexString = new StringBuilder(); in toHexString() local73 hexString.append(Integer.toHexString(0xFF & b)).append(separator); in toHexString()75 return hexString.toString(); in toHexString()