if(logMINOR) Logger.minor(this, "getCharset(): default="+parseCharset);
if(length > getCharsetBufferSize() && Logger.shouldLog(LogLevel.MINOR, this)) {
Logger.minor(this, "More data than was strictly needed was passed to the charset extractor for extraction");
}
ByteArrayInputStream strm = new ByteArrayInputStream(input, 0, length);
Writer w = new NullWriter();
Reader r;
try {
r = new BufferedReader(new InputStreamReader(strm, parseCharset), 4096);
} catch (UnsupportedEncodingException e) {
strm.close();