List of utility methods to do XML Hex
String | toHexString(byte[] array) to Hex String return DatatypeConverter.printHexBinary(array);
|
String | toHexString(byte[] edid) Converts a byte array to a hexadecimal string return DatatypeConverter.printHexBinary(edid);
|
String | toReadableHexString(byte[] array) to Readable Hex String String hex = DatatypeConverter.printHexBinary(array).toUpperCase(); String finalHex = ""; int temp = 0; for (char current : hex.toCharArray()) { if (temp == 2) { finalHex += " "; temp = 0; finalHex += current; temp++; return finalHex; |