Here you can find the source of toIDString(final byte[] id)
public static String toIDString(final byte[] id)
//package com.java2s; //License from project: BSD License public class Main { public static String toIDString(final byte[] id) { final StringBuilder builder = new StringBuilder(); for (final byte each : id) { builder.append(each);/* w w w. j a v a 2s.co m*/ } return builder.toString(); } }