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