Here you can find the source of bytesHighFirstToChar(byte[] bytes, int start)
public static char bytesHighFirstToChar(byte[] bytes, int start)
//package com.java2s; //License from project: Apache License public class Main { public static char bytesHighFirstToChar(byte[] bytes, int start) { char c = (char) (((bytes[start] & 0xFF) << 8) | (bytes[start + 1] & 0xFF)); return c; }/*from ww w .ja v a 2 s. com*/ }