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

Method formatObjectArray

platform/java/example/PDFTrace.java:68–84  ·  view source on GitHub ↗
(Object[] array, String suffix)

Source from the content-addressed store, hash-verified

66 }
67
68 protected String formatObjectArray(Object[] array, String suffix) {
69 StringBuilder sb = new StringBuilder('[');
70 int n = array.length;
71 for (int i = 0; i < n; i++)
72 {
73 if (array[i] instanceof Float)
74 sb.append(((Float) array[i]).toString() + " ");
75 else if (array[i] instanceof String)
76 sb.append(formatString((String) array[i], " "));
77 else
78 sb.append(formatByteArray((byte[]) array[i], " "));
79 }
80 sb.append("]");
81 if (suffix != null)
82 sb.append(suffix);
83 return sb.toString();
84 }
85
86 public void pushResources(PDFObject resources) { }
87 public void popResources() { }

Callers 1

op_TJMethod · 0.95

Calls 3

formatStringMethod · 0.95
formatByteArrayMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected