Here you can find the source of byteToBoolean(byte[] values)
public static boolean[] byteToBoolean(byte[] values)
//package com.java2s; public class Main { public static boolean[] byteToBoolean(byte[] values) { if (values == null) { return null; }// www . j a v a 2 s . com boolean[] results = new boolean[values.length]; for (int i = 0; i < values.length; i++) { results[i] = (values[i] != 0); } return results; } }