Java Boolean Value From convertBooleanFromBytes(byte[] byteArray)

Here you can find the source of convertBooleanFromBytes(byte[] byteArray)

Description

convert Boolean From Bytes

License

Open Source License

Declaration

public static boolean convertBooleanFromBytes(byte[] byteArray) 

Method Source Code

//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;
    }
}

Related

  1. convertBoolean(String str)
  2. convertBoolean(String str, boolean defaults)
  3. convertBoolean(String value)
  4. convertBoolean(String value)
  5. convertBoolean2boolean(final Boolean[] pArray)
  6. convertBooleanValueToInt(String value)