Here you can find the source of convertByteToChar(byte input)
public static char convertByteToChar(byte input)
//package com.java2s; public class Main { public static char convertByteToChar(byte input) { if ((int) input < 10) { return (char) (input + '0'); } else {/*from ww w. ja v a 2 s . c o m*/ return (char) ('A' + (int) input - 10); } } }