Here you can find the source of toStringForm(byte[] arr)
public static String toStringForm(byte[] arr)
//package com.java2s; /*/*from w w w .j a v a2 s .c o m*/ * Copyright 2004-2008 H2 Group. Multiple-Licensed under the H2 License, Version 1.0, and under the Eclipse Public License, Version 1.0 (http://h2database.com/html/license.html). Initial Developer: H2 Group */ public class Main { public static String toStringForm(byte[] arr) { StringBuilder sb = new StringBuilder(); for (byte b : arr) { sb.append(((int) b) + ""); } return sb.toString(); } }