(byte[] data)
| 731 | } |
| 732 | |
| 733 | public void bytesToHex(byte[] data) |
| 734 | { |
| 735 | StringBuffer buf = new StringBuffer(); |
| 736 | for (int i = 0; i < data.length; i++ ) |
| 737 | { |
| 738 | buf.append(toHexChar((data[i]>>>4)&0x0F)); |
| 739 | buf.append(toHexChar(data[i]&0x0F)); |
| 740 | } |
| 741 | |
| 742 | System.out.println(buf); |
| 743 | } |
| 744 | |
| 745 | |
| 746 | /** |
no test coverage detected