public void setCharset(Charset charset) {
        this.found = true;
        this.charset = charset;
    }
A detection may either not find a charset, find an invalid charset, or find a valid charset
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-html-module/src/main/java/org/apache/tika/parser/html/charsetdetector/CharsetDetectionResult.java