StAXWriter

class StAXWriter(val delegate: XMLStreamWriter, val xmlDeclMode: XmlDeclMode = XmlDeclMode.None, val autoCloseEmpty: Boolean = true) : PlatformXmlWriterBase, XmlWriter(source)

An implementation of XmlWriter that uses an underlying stax writer. Created by pdvrieze on 16/11/15.

Constructors

Link copied to clipboard
constructor(writer: Writer, repairNamespaces: Boolean, xmlDeclMode: XmlDeclMode = XmlDeclMode.None)
constructor(outputStream: OutputStream, encoding: String, repairNamespaces: Boolean, xmlDeclMode: XmlDeclMode = XmlDeclMode.None)
constructor(result: Result, repairNamespaces: Boolean, xmlDeclMode: XmlDeclMode = XmlDeclMode.None)
constructor(delegate: XMLStreamWriter, xmlDeclMode: XmlDeclMode = XmlDeclMode.None, autoCloseEmpty: Boolean = true)

Properties

Link copied to clipboard

Determines whether empty tags are coalesced into self-closing tags.

Link copied to clipboard

The XMLStreamWriter that is wrapped

Link copied to clipboard
open override val depth: Int
Link copied to clipboard
open override var indent: Int
Link copied to clipboard
Link copied to clipboard
override var indentString: String
Link copied to clipboard
Link copied to clipboard

This determines how automatic xml declarations are written. Note that explicit calls to startDocument ignore this.

Functions

Link copied to clipboard
open override fun attribute(namespace: String?, name: String, prefix: String?, value: String)
Link copied to clipboard
open override fun cdsect(text: String)
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun comment(text: String)
Link copied to clipboard
open override fun docdecl(text: String)
Link copied to clipboard
open override fun endDocument()
Link copied to clipboard
open override fun endTag(namespace: String?, localName: String, prefix: String?)
Link copied to clipboard
open override fun entityRef(text: String)
Link copied to clipboard
open override fun flush()
Link copied to clipboard
open override fun getNamespaceUri(prefix: String): String?
Link copied to clipboard
open override fun getPrefix(namespaceUri: String?): String?
Link copied to clipboard
open override fun ignorableWhitespace(text: String)
Link copied to clipboard
open fun namespaceAttr(namespace: Namespace)
open override fun namespaceAttr(namespacePrefix: String, namespaceUri: String)
Link copied to clipboard
open override fun processingInstruction(text: String)
open override fun processingInstruction(target: String, data: String)
Link copied to clipboard
open override fun setPrefix(prefix: String, namespaceUri: String)
Link copied to clipboard
open override fun startDocument(version: String?, encoding: String?, standalone: Boolean?)
Link copied to clipboard
open override fun startTag(namespace: String?, localName: String, prefix: String?)
Link copied to clipboard
open override fun text(text: String)