Here you can find the source of byteToBoolean(byte[] byt)
static boolean[] byteToBoolean(byte[] byt)
//package com.java2s; public class Main { /** Convert an array of bytes to booleans */ static boolean[] byteToBoolean(byte[] byt) { boolean[] bool = new boolean[byt.length]; for (int i = 0; i < byt.length; i += 1) { bool[i] = byt[i] == 'T'; }//www. jav a 2 s.co m return bool; } }