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