Class $k.TextDocument
Represents a text document
- Defined in: TextDocument.js
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Class Detail
$k.TextDocument()
Method Detail
-
cr()Print a CR
-
print(object)Print the object on the script document
- Parameters:
- object
- Object to print. Will be converted with toString().
-
println(object)Print the object on the script document and adds a line break
- Parameters:
- object
- Object to print. Will be converted with toString().
-
tab()Print a tab
-
{string} text()Get the contents as string
- Throws:
- {$k.exception.TypeError}
- If the document is based on an external stream (file etc.)
- Returns:
- {string}
-
Returns an XML writer that writes on this document
- Throws:
- {$k.exception.TypeError}
- If the document is not stream-based
- Returns:
- {$k.XMLWriter}