/src/main/java/org/htmlunit/util/EncodingSniffer.java
return encoding; if ( encoding != null || content == null) {Charset encoding = sniffEncodingFromHttpHeaders( headers) ;
Charset encoding = sniffEncodingFromHttpHeaders ( headers ) ; if ( encoding != null || content == null ) { return encoding;
bytes = readAndPrepend(content, SIZE_OF_HTML_CONTENT_SNIFFED, bytes); encoding = sniffEncodingFromMetaTag(bytes); return encoding; } public static Charset sniffXmlEncoding(final List<NameValuePair> headers, final InputStream content) throws IOException { <extra_id_0> } byte[] bytes = read(content, 3); encoding = sniffEncodingFromUnicodeBom(bytes); if (encoding != null) { return encoding; }