Here you can find the source of getChar(byte b)
public static char getChar(byte b)
//package com.java2s; public class Main { public static char getChar(byte[] bytes) { return (char) ((0xff & bytes[0]) | (0xff00 & (bytes[1] << 8))); }// w ww .j a va2 s . c o m public static char getChar(byte b) { return (char) (0xff & b); } }