Here you can find the source of byteToNum(byte bByte)
private static String byteToNum(byte bByte)
//package com.java2s; //License from project: Apache License public class Main { private static String byteToNum(byte bByte) { int iRet = bByte; System.out.println("iRet1=" + iRet); if (iRet < 0) { iRet += 256;/* w w w . j ava2s . co m*/ } return String.valueOf(iRet); } }