if (inputStream == null) {
throw new SAXException("Both streams in InputSource were null.");
}
if (this.characterEncoding == null) {
if (allowRewinding) {
inputStream = rewindableInputStream = new RewindableInputStream(
inputStream);
}
this.reader = new HtmlInputStreamReader(inputStream,
tokenizer.getErrorHandler(), tokenizer, this, heuristics);
} else {