public static boolean isBitSet(byte[] array, long bit) {
        return (array[(int) (bit / 8)] & (1 << (int) (bit % 8))) != 0;
    }
Read a bit value from a byte array with the specified bit position.

@param array Specify the byte array.
@param bit   Specify the bit position.
@return Return the bit value in the specified bit position.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/util/Bit.java