public void flushCache() {
        cacheBitsRemaining = 0;
    }
Input stream reading 1-8, 16, 24 or 32 bits, starting from the most significant bit, but incapable of reading non-aligned and < 8 bit fields across byte
boundaries.
src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/BitInputStream.java