private Map.Entry<String, String> getAttribute() throws IOException {
        String name = getAttributeName();
        if (name == null) {
            return null;
        }

        if (!expect(EQUAL)) {
            return new AbstractMap.SimpleEntry<>(name, "");
        }
        skipAll(WHITESPACE);

        String value = getAttributeValue();
        return new AbstractMap.SimpleEntry<>(name, value);
    }
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