if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Charset detection phase 2. Charset in XML declaration "
+ "is `" + declEncoding + "`.");
}
stream.reset();
/*
* Now RewindableInputStream is allowed to return more than one byte
* per read operation. It also will not buffer bytes read using
* `read(byte[], int, int)` method.