Here you can find the source of byteToNumString(byte b)
private static String byteToNumString(byte b)
//package com.java2s; //License from project: Open Source License public class Main { private static String byteToNumString(byte b) { int tempB = b; if (tempB < 0) { tempB = 256 + tempB;/*from w w w.j a v a 2s. co m*/ } return String.valueOf(tempB); } }