}
public static String bestEffortDecodeBytes(NIOHttpHeaders headers, byte[] crawlData,int offset,int length)
throws IOException {
ContentTypeAndCharset urlMetadata = new ContentTypeAndCharset();
HttpHeaderUtils.parseContentType(headers, urlMetadata);
if (urlMetadata._charset != null && crawlData != null) {
if (urlMetadata._contentType != null