public int get(int from, int to) {
            int shiftVal = value >> from;
            int mask = (1 << (to - from + 1)) - 1;
            return shiftVal & mask;
        }
Returns the value of the bit group from the given start and end
index. E.g. ''from'' = 0, ''to'' = 3 will return the value of the
first 4 bits.

@param from index
@param to   the to index
@return the value of this group of bits
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-audiovideo-module/src/main/java/org/apache/tika/parser/mp3/MpegStream.java