XmlStreamingFactory

actual interface XmlStreamingFactory(source)
expect interface XmlStreamingFactory(source)
actual interface XmlStreamingFactory(source)
actual interface XmlStreamingFactory(source)

Functions

Link copied to clipboard
open 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.

abstract fun newReader(reader: Reader): <Error class: unknown class>
open fun newReader(input: CharSequence): <Error class: unknown class>
open fun newReader(input: String): <Error class: unknown class>
abstract fun newReader(inputStream: InputStream, encoding: String = "UTF-8"): <Error class: unknown class>
Link copied to clipboard
abstract fun newWriter(writer: Writer, repairNamespaces: Boolean = false, xmlDeclMode: <Error class: unknown class> = XmlDeclMode.None): <Error class: unknown class>
open fun newWriter(output: Appendable, repairNamespaces: Boolean = false, xmlDeclMode: <Error class: unknown class> = XmlDeclMode.None): <Error class: unknown class>
abstract fun newWriter(outputStream: OutputStream, encoding: String, repairNamespaces: Boolean = false, xmlDeclMode: <Error class: unknown class> = XmlDeclMode.None): <Error class: unknown class>