private void skipUntil(byte... expected) throws IOException {
        while (!expect(expected)) {
            if (stream.read() == -1) {
                return;
            }
        }
    }
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