MCPcopy Create free account
hub / github.com/apache/tomcat / bToS

Method bToS

java/org/apache/catalina/tribes/io/ChannelData.java:382–390  ·  view source on GitHub ↗

Converts a byte array to a string representation. @param data The byte array @return the string representation

(byte[] data)

Source from the content-addressed store, hash-verified

380 * @return the string representation
381 */
382 public static String bToS(byte[] data) {
383 StringBuilder buf = new StringBuilder(4 * 16);
384 buf.append('{');
385 for (int i = 0; data != null && i < data.length; i++) {
386 buf.append(String.valueOf(data[i])).append(' ');
387 }
388 buf.append('}');
389 return buf.toString();
390 }
391
392
393}

Callers 1

toStringMethod · 0.95

Calls 3

toStringMethod · 0.65
appendMethod · 0.45
valueOfMethod · 0.45

Tested by

no test coverage detected