(final String str)
| 398 | |
| 399 | |
| 400 | public static String hexDump(final String str) |
| 401 | { |
| 402 | final byte[] utf16Bytes = _Private_Utils.encode(str, UTF16BE_CHARSET); |
| 403 | StringBuilder buf = new StringBuilder(utf16Bytes.length * 4); |
| 404 | for (byte b : utf16Bytes) { |
| 405 | buf.append(Integer.toString(0x00FF & b, 16)); |
| 406 | buf.append(' '); |
| 407 | } |
| 408 | return buf.toString(); |
| 409 | } |
| 410 | |
| 411 | public static String hexDump(final byte[] octets) |
| 412 | { |
no test coverage detected