code: public static boolean[] getBits(final byte... bytes) {
          if (bytes.length > 4) {
              throw new InvalidParameterException("Invalid number of bytes");
          }
  
          final boolean[] res = new boolean[bytes.length * 8];
  
          int pos = 0;
  
          for (byte b : bytes) {
              for (boolean bool : getBits(b)) {
                  res[pos] = bool;
                  pos++;
              }
          }
  
          return res;
      }
docs: Gets bits as boolean array from a given byte array.
  
  @param bytes bytes.
  @return bits.