MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / hexDump

Method hexDump

src/test/java/com/amazon/ion/TestUtils.java:400–409  ·  view source on GitHub ↗
(final String str)

Source from the content-addressed store, hash-verified

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 {

Callers 5

assertSingleCodePointMethod · 0.95
allGoodFilesMethod · 0.80
assertBufferMethod · 0.80
assertValueMethod · 0.80

Calls 3

toStringMethod · 0.65
encodeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected