newReader

open override fun newReader(reader: Reader): <Error class: unknown class>
open override fun newReader(inputStream: InputStream, encoding: String): <Error class: unknown class>


open override fun newReader(inputStream: InputStream): <Error class: unknown class>

Version of newReader that autodetects the encoding. It first looks for UTF16/UTF32. Then it looks at the declared encoding in the attribute in 8-bit ascii mode. If not it will use the byte order mark to determine UTF16LE/BE or UTF8.

If no other encoding is determined, the used encoding will be UTF-8 per the XML standard.