public int read(byte[] b, int off, int len) {
            if (len > 10) {
                return super.read(b, off, len - 10);
            } else {
                return super.read(b, off, len);
            }
        }
Prevent reading the entire len of bytes if requesting more
than 10 bytes.
tika-core/src/test/java/org/apache/tika/detect/MagicDetectorTest.java