/src/main/java/org/htmlunit/util/EncodingSniffer.java
if ( isXml( headers) ) {   charset = sniffXmlEncoding( headers, content) ; }else {   charset = sniffUnknownContentTypeEncoding( headers, content) ; }
[Delete]
private static final int SIZE_OF_XML_CONTENT_SNIFFED = 512; private EncodingSniffer() { } public static Charset sniffEncoding(final List<NameValuePair> headers, final InputStream content) throws IOException { final Charset charset; <extra_id_0> charset = sniffHtmlEncoding(headers, content); } else if (isXml(headers)) { charset = sniffXmlEncoding(headers, content); } else {