private boolean expect(byte... expected) throws IOException {
        stream.mark(expected.length);
        for (byte b : expected) {
            byte read = read();
            if (read != b) {
                stream.reset();
                return false;
            }
        }
        return true;
    }
Read an attribute from the stream

@return the attribute as a Map.Entry, where the key is the attribute's name and
the value is the attribute's value. If there is no attribute, return null
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-html-module/src/main/java/org/apache/tika/parser/html/charsetdetector/PreScanner.java