Class: AbstractTextDocument

$k. AbstractTextDocument

new $k.AbstractTextDocument()

Methods

cr()

Print a CR

print(object)

Print the object on the script document

Name Type Description
object

Object to print. Will be converted with toString().

println(object)

Print the object on the script document and adds a line break

Name Type Description
object

Object to print. Will be converted with toString().

tab()

Print a tab

text() : string

Get the contents as string

Throws:
Type Description
$k.exception.TypeError

If the document is based on an external stream (file etc.)

Returns:
Type Description
string

xmlWriter() : $k.XMLWriter

Returns an XML writer that writes on this document

Throws:
Type Description
$k.exception.TypeError

If the document is not stream-based

Returns:
Type Description
$k.XMLWriter