Here you can find the source of toChar(byte b)
public static char toChar(byte b)
//package com.java2s; public class Main { /**/*from www. j a v a2 s .c o m*/ * Converts (signed) byte to (unsigned) char. */ public static char toChar(byte b) { return (char) (b & 0xFF); } }