Here you can find the source of convertBooleanFromBytes(byte[] byteArray)
public static boolean convertBooleanFromBytes(byte[] byteArray)
//package com.java2s; public class Main { public static boolean convertBooleanFromBytes(byte[] byteArray) { return convertBooleanFromBytes(byteArray, 0); }//from w w w. j a v a 2s .c o m public static boolean convertBooleanFromBytes(byte[] byteArray, int offset) { return byteArray[offset] != 0; } }