(byte[] buff)
| 213 | } |
| 214 | |
| 215 | public static String binaryToHex(byte[] buff) { |
| 216 | StringBuilder sb = new StringBuilder(buff.length * 2); |
| 217 | for (byte b : buff) sb.append(String.format("%02x", b)); |
| 218 | return sb.toString(); |
| 219 | } |
| 220 | |
| 221 | public static String binaryToBase16(Object buff2) { |
| 222 | byte[] buff = (byte[]) buff2; |
no test coverage detected