Here you can find the source of toBoolean(byte data[], int offset, boolean value)
@Deprecated public static void toBoolean(byte data[], int offset, boolean value)
//package com.java2s; //License from project: Open Source License public class Main { /** deprecated - used only in DatabaseLookupMessage */ public static final byte BOOLEAN_TRUE = 0x1; /** deprecated - used only in DatabaseLookupMessage */ public static final byte BOOLEAN_FALSE = 0x0; /** @deprecated unused */ @Deprecated//from w w w . j a v a 2 s .c o m public static final byte BOOLEAN_UNKNOWN = 0x2; /** @deprecated unused */ @Deprecated public static void toBoolean(byte data[], int offset, boolean value) { data[offset] = (value ? BOOLEAN_TRUE : BOOLEAN_FALSE); } /** @deprecated unused */ @Deprecated public static void toBoolean(byte data[], int offset, Boolean value) { if (value == null) data[offset] = BOOLEAN_UNKNOWN; else data[offset] = (value.booleanValue() ? BOOLEAN_TRUE : BOOLEAN_FALSE); } }