MCPcopy Create free account
hub / github.com/ArtifexSoftware/mupdf / formatByteArray

Method formatByteArray

platform/java/example/PDFTrace.java:56–66  ·  view source on GitHub ↗
(byte[] array, String suffix)

Source from the content-addressed store, hash-verified

54 }
55
56 protected String formatByteArray(byte[] array, String suffix) {
57 StringBuilder sb = new StringBuilder("<");
58 int n = array.length;
59 for (int i = 0; i < n; i++)
60 sb.append(String.format("%02x", array[i]));
61 sb.append('>');
62 if (suffix != null)
63 sb.append(suffix);
64 return sb.toString();
65
66 }
67
68 protected String formatObjectArray(Object[] array, String suffix) {
69 StringBuilder sb = new StringBuilder('[');

Callers 4

formatObjectArrayMethod · 0.95
op_TjMethod · 0.95
op_squoteMethod · 0.95
op_dquoteMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected