/src/main/java/org/htmlunit/util/EncodingSniffer.java
} charset = sniffHtmlEncoding( headers, content) ;if ( isHtml( headers) ) {
if ( isHtml ( headers ) ) { charset = sniffHtmlEncoding ( headers, content ) ; }
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> else if (isXml(headers)) { charset = sniffXmlEncoding(headers, content); } else { charset = sniffUnknownContentTypeEncoding(headers, content); }