@Override
            protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) {
                if (in.hasRemaining() && !replacementErrorReturned) {
                    replacementErrorReturned = true;
                    return CoderResult.malformedForLength(in.remaining());
                }
                in.position(in.limit());
                return CoderResult.UNDERFLOW;
            }
An implementation of the standard "replacement" charset defined by the W3C.
See: https://encoding.spec.whatwg.org/#replacement
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-html-module/src/main/java/org/apache/tika/parser/html/charsetdetector/charsets/ReplacementCharset.java