XmlStreamingFactory
A factory that can be used to customize xmlStreaming to use these custom factory functions when not using the explicit generic implementations.
This is only really supported for the JVM/Android platforms.
See also
A factory that can be used to customize xmlStreaming to use these custom factory functions when not using the explicit generic implementations. Factories are picked up using service loaders.
See also
Functions
Link copied to clipboard
abstract fun newReader(inputStream: InputStream, encoding: String = "UTF-8", expandEntities: Boolean): XmlReader
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.
Link copied to clipboard
abstract fun newWriter(writer: Writer, repairNamespaces: Boolean = false, xmlDeclMode: XmlDeclMode = XmlDeclMode.None): XmlWriter
open fun newWriter(output: Appendable, repairNamespaces: Boolean = false, xmlDeclMode: XmlDeclMode = XmlDeclMode.None): XmlWriter
abstract fun newWriter(outputStream: OutputStream, encoding: String, repairNamespaces: Boolean = false, xmlDeclMode: XmlDeclMode = XmlDeclMode.None): XmlWriter
